Rank: Advanced Member
Groups: Registered, Registered Users, Subscribers Joined: 3/7/2005(UTC) Posts: 1,346
|
have you ever noticed how the truck often slows down just prior to changing directions.... unless its a women drivin of course, the only newton they know is a fig newton.... preston had posted something along that line awhile back that got me to studyin on it abit.... not women drivers, but the slowin down part....
having just about figured out how to open and close charts, my interest has moved into the coding aspect.... which is pretty addicting.... taking preston's thoughts and the roc of other indicators that slowing down process might be visable.... it helps to apply a ma to that indicator and then copy/paste that ma onto the price chart....
noticed a few interesting quirks right off.... ya know how when applying a moving average the target will change colors... well it won't on the {marilyn's driving} indicator.... not sure why.... reckon meta's smart enough not to hitch a ride....
also when applying a ma it will target the last listed plot only.... lookin at my last line of code, a;b;d , all 3 will plot but the only target available will be 'd'..... of course changing the last line to , d;b;a , will make 'a' the only target....
below should be a first draft of my {{marilyn's driving}} indicator.... with plenty of room for improvment and any thoughts on improving it welcomed....
the first input is simply the indicator being roc'd....
the second input is in case there is a period involved, rsi(14) has one, macd() does not... in the case of macd() having any value in the input is ok cause its not being used anyway.....
the 3,4 and 5 inputs are to set your smoothing ma values for all 3 plots.... why 3?, speed and lazy.... perhaps in inverse order.... the colors only match my templates.....
the 6'th input is a vain attempt at labeling the first input....
speakin of vain attempts, finally figured out the source of my trading troubles.... newton's 3'rd law, for every action there is an equal and opposite reaction.... painfully translated as, when i buy it goes down and when i sell it goes up......h
[code:1:29fcf5ffd4]{marilyn's driving}
indi:= Input("indicator name, such as macd or rsi",1,20,1);
indpds:=Input("indicator periods such as rsi 14 or rsi 5",1,100,14);
pds:= Input("fast roc periods , green",1,100,5);
pds2:= Input("medium roc periods , red",1,100,10);
pds3:= Input("slow roc periods , blue",1,100,20);
blank:=Input("macd,rsi,wilders,mfi,ad,co,buyp,kvo,cci,mass,adx",0,0,0);
a:=ROC(If(indi=1,MACD(),
If(indi=2,RSI(indpds),
If(indi=3,Wilders(C ,indpds ) ,
If(indi=4,MFI(indpds),
If(indi=5,AD(),
If(indi=6,CO(),
If(indi=7,BuyP(),
If(indi=8,KVO(),
If(indi=9,CCI(indpds),
If(indi=10, Mass(indpds),
If(indi=11, ADX(indpds),
If(indi=12, CMF(indpds),
If(indi=13, Typical() ,
If(indi=14, WillA(),
MP())))))))))))))),pds,$);
b:=ROC(If(indi=1,MACD(),
If(indi=2,RSI(indpds),
If(indi=3,Wilders(C ,indpds ),
If(indi=4,MFI(indpds),
If(indi=5,AD(),
If(indi=6,CO(),
If(indi=7,BuyP(),
If(indi=8,KVO(),
If(indi=9,CCI(indpds),
If(indi=10, Mass(indpds),
If(indi=11, ADX(indpds),
If(indi=12, CMF(indpds),
If(indi=13, Typical() ,
If(indi=14, WillA(),
MP())))))))))))))),pds2,$);
d:=ROC(If(indi=1,MACD(),
If(indi=2,RSI(indpds),
If(indi=3,Wilders(C ,indpds ),
If(indi=4,MFI(indpds),
If(indi=5,AD(),
If(indi=6,CO(),
If(indi=7,BuyP(),
If(indi=8,KVO(),
If(indi=9,CCI(indpds),
If(indi=10, Mass(indpds),
If(indi=11, ADX(indpds),
If(indi=12, CMF(indpds),
If(indi=13, Typical() ,
If(indi=14, WillA(),
MP())))))))))))))),pds3,$);
a;b;d[/code:1:29fcf5ffd4]
|