I am new to amibroker, hope you can help with the
When I debug the following simple afl in AFL Formula Editor, i found sigScaleIn is 99998,
Can anyone tell me where that number come from?
Also, that number has been assigned to Buy, I thought you can only assign 1 or 0 to Buy, what does that mean if Buy=99998?
Much appreciated.
===============================
SetTradeDelays(0,0,0,0);
BuyPrice=C;
SellPrice=C;
PositionSize=-25;
Last5H=Ref(HHV(H,5),-1);
Buy=IIf(H>Last5H,sigScaleIn,0);
Last20L=Ref(LLV(L,20),-1);
Sell=IIf(L<Last20L,1,0);
Sell=ExRem(Sell,Buy);
__._,_.___
Posted by: petehe@gmail.com
Reply via web post | • | Reply to sender | • | Reply to group | • | Start a New Topic | • | Messages in this topic (1) |
**** 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/
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