PureBytes Links
Trading Reference Links
|
Is it possible in the backtester to code in AFL the following:
- Open up two charts (basic price)
- On the top chart, show all long positions. I use this code for my
long positions:
BUY = {conditions here}
BuyPrice = xxxxx
LongStop = Ref(L, -1);
Sell = L < LongStop;
Buy = ExRem( Buy, Sell );
Sell = ExRem( Sell, Buy );
SellPrice = Min(Open,LongStop);
Plot(LongStop,"LongStop",colorBlue,styleDots);
PlotShapes(LongSetup*shapeUpArrow,colorBlack,0,L,-12);
PlotShapes(Buy*shapeUpArrow,colorGreen,0,L,-12);
PlotShapes(Sell*shapeDownArrow,colorRed,0,H,-12);
I would then like to plot similar for short trades on the bottom
chart.
I already have the code for the BUY/SELL AFL. I am looking for code
to open two charts and write to each one independently.
Thanks - alex
Content-Description: "AVG certification"
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.5.432 / Virus Database: 268.17.18/662 - Release Date: 1/31/2007 3:16 PM
|