[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [amibroker] A few questions for QP2 users



PureBytes Links

Trading Reference Links

Herman,

Thanks you very much for this, I am trying these things right now... 
and as I go, I learn more and more about AFL ... I have rusted pretty 
good and there are so manny new goodies to use !

Thanks once more !!!

Kind reagards,

Louw

--- In amibroker@xxxxxxxxxxxxxxx, "Herman van den Bergen" 
<psytek@xxxx> wrote:
> You can use the AmiBroker charting capability to make debugging 
stops a lot
> easier. I added these statements to my Equity(1) statement in my 
system's
> code. It will help you understand how SetTradeDelays(), 
AllowSameBarExits
> and ActivateStopsImmediately effect you trading signals. Especially 
when
> debugging PortFolioTrading systems this may be helpful.
> 
> DigitsOn = Param("Stop Digits On",0,0,1,1);
> if(DigitsOn)
>     {
>     AddToComposite(Sell,"~Signals"+Name(),"C",1|2|4|8);
>     AddToComposite(Cover,"~Signals"+Name(),"O",1|2|4|8);
>     }
> 
> E = Equity(1); // This statement is part of you system's code
> 
> if(DigitsOn)
>     {
>     AddToComposite(Sell,"~Signals"+Name(),"H",1|2|4|8);
>     AddToComposite(Cover,"~Signals"+Name(),"L",1|2|4|8);
>     }
> 
> You turn on this code by setting DigitsOn to 1 using the AA Param() 
button.
> Next you place this code ahead of all code in your Built-In Price 
Indicator,
> similarly to the above code you turn it on with the Right-Click 
Param()
> function.
> DigitsOn = Param("Digits On",0,0,1,1);
> if(DigitsOn)
>          {
>     OS = Param("Digit OffSet",3,0,50,1);
>     Sell = Foreign("~Signals"+Name(),"C");
>     Cover = Foreign("~Signals"+Name(),"O");
>     SellShapeDigitNum = IIf(Sell,33+2*Sell,shapeNone);
>     CoverShapeDigitNum = IIf(Cover,33+2*Cover,shapeNone);
>     PlotShapes(CoverShapeDigitNum,colorBrightGreen,0,(1-OS/1000)*
(H+L)/2);
>     PlotShapes(SellShapeDigitNum,colorRed,0,(1-OS/1000)*(H+L)/2);
>     Sell = Foreign("~Signals"+Name(),"H");
>     Cover = Foreign("~Signals"+Name(),"L");
>     SellShapeDigitNum = IIf(Sell,33+2*Sell,shapeNone);
>     CoverShapeDigitNum = IIf(Cover,33+2*Cover,shapeNone);
>     PlotShapes(CoverShapeDigitNum,colorBlue,0,(1+OS/1000)*(H+L)/2);
>     PlotShapes(SellShapeDigitNum,colorYellow,0,(1+OS/1000)*(H+L)/2);
>          }
> 
> Enable and Position the Digits with Param() of the price Chart. 
Your Price
> Chart should look like this with both DigitsOn set to 1:
> 
> 
> 
> Modify to your specific needs. Good luck,
> 
> herman.



------------------------ Yahoo! Groups Sponsor --------------------~--> 
Make a clean sweep of pop-up ads. Yahoo! Companion Toolbar.
Now with Pop-Up Blocker. Get it for free!
http://us.click.yahoo.com/L5YrjA/eSIIAA/yQLSAA/GHeqlB/TM
--------------------------------------------------------------------~-> 

Check AmiBroker web page at:
http://www.amibroker.com/

Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/amibroker/

<*> To unsubscribe from this group, send an email to:
    amibroker-unsubscribe@xxxxxxxxxxxxxxx

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/