Re: [amibroker] sigScaleIn and Buy

 

It's a value of a constant SigScaleIn, hardcoded. You can assign SigScaleIn to Buy to pass the information that you want to scale in the trade. Undercover, you're assigning 99998, but SigScaleIn is easier to remember.

On Sun, Apr 17, 2016 at 1:33 PM, petehe@gmail.com [amibroker] <amibroker@yahoogroups.com> wrote:
 

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);





--
Marcin Jagodziński

__._,_.___

Posted by: =?UTF-8?Q?Marcin_Jagodzi=C5=84ski?= <marcin.jagodzinski@gmail.com>
Reply via web post Reply to sender Reply to group Start a New Topic Messages in this topic (2)
**** 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/


.

__,_._,___

Related Posts


EmoticonEmoticon

:)
:(
=(
^_^
:D
=D
=)D
|o|
@@,
;)
:-bd
:-d
:p
:ng
:lv