Hello,
Thank you very much for your e-mail.
sigScaleIn is a predefined constant and should this is what should be used, not some numbers.
It happens to be equal 99998 at the moment but it does not matter. In fact it may be changed sometime in the future.
For backward and forward compatibility you should ALWAYS use human-readable constants like
sigScaleIn, not numbers.
The numeric value is just numeric value. It is internally assigned.
The number is NOT documented for reason - you should NOT USE the number.
Best regards,
Tomasz Janeczko
amibroker.com
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: Tomasz Janeczko <groups@amibroker.com>
Reply via web post | • | Reply to sender | • | Reply to group | • | Start a New Topic | • | Messages in this topic (5) |
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