Help on coding Fractal DImensional Index

hypernoob

Newbie
Messages
2
Likes
0
Hi all,

Can anyone help me make some modifications to the FDI code? I tried to split FDI into 3 regions such that the top is colored green, mid yellow and bottom red but my attempts changed the geometry of the FDI altogether.

The bounds are:-
Upperbound=average of FDI over 30 periods + standard deviation of FDI over e same 30 periods
Upperbound=average of FDI over 30 periods - standard deviation of FDI over e same 30 periods

If anyone needs further description of the math involved in calculating the FDI, please refer to http://unicorn.us.com/

I have also attached my codes.

Thanks. :D
 

Attachments

  • FDI.txt
    1.6 KB · Views: 723
hypernoob,

try this at the bottom after the fracDim is calculated where you have {Modification}


Plot1(FractalDim, "fracDim");

If FractalDim > average(FractalDim,MA) + stddev(FractalDim,MA) then
setplotcolor(1, Green)
else if FractalDim <= average(FractalDim,MA) + stddev(FractalDim,MA) and
FractalDim >= average(FractalDim,MA) - stddev(FractalDim,MA) then
setplotcolor(1, Yellow)
else if FractalDim < average(FractalDim,MA) - stddev(FractalDim,MA) then
setplotcolor(1,Red);

Also note the >= and <= changes.



btw, generally you'll get much better support for actual coding on the TS forums than here ?!

hth,

zdo
 
fractal breakout

I READ SOMEWHERE FRACTAL BREAKOUTS IS THE WAY TO GO FOR INTRADAY TRADING
Can you tell me the vb code for this fractal breakout I nly know that FDI value varies from 1 to 2 when it is 1.5 you should not trade Can you just give vb code for basic parameters for fractal breakout system
Sachin
 
Top