[amibroker] Assist required on below code...

 

I’m using the below code and was wondering if anyone can assist in correcting or showing me where I’m going wrong…

 

The idea is the place the green dot on the middle bar at the high on the attached graphic

 

 

_Section_Begin(“TestBARDot”);

UpFractalBW = IIf(((Ref(H,-1) >= Ref(H, -2)) AND (Ref(H,-1) >= H)),True,False);

Buy = UpFractalBW;

Shape = Buy * shapeCircle;

Plot( Close, "Price", colorBlack, stylebar );

PlotShapes( shape, IIf(Buy , colorGreen, 0 ), 0, IIf( Buy, High, Low ),0 );

GraphXSpace = 5;

_SECTION_END();

 

I know it’s the UpFractalBW array that is assigned the true value one bar late…how to I place the true value in the array at Ref(H,1) ?

 

Any assistance would be greatly appreciated!

 

 

__._,_.___

Posted by: Nurudin Kaba <nurudin.kaba@outlook.com>
Reply via web post Reply to sender Reply to group Start a New Topic Messages in this topic (1)

Upgrade your account with the latest Yahoo Mail app
Get organized with the fast and easy-to-use Yahoo Mail app. Upgrade today!

**** IMPORTANT PLEASE READ ****
This group is for the discussion between users only.
This is *NOT* technical support channel.

TO GET TECHNICAL SUPPORT send an e-mail directly to
SUPPORT {at} amibroker.com

TO SUBMIT SUGGESTIONS please use FEEDBACK CENTER at
http://www.amibroker.com/feedback/
(submissions sent via other channels won't be considered)

For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
http://www.amibroker.com/devlog/


.

__,_._,___


EmoticonEmoticon