How to do this in AB

#3
Drag both the codes on same price panel.
OR
Combine those two codes to one and apply it to price.
If i want to do the backtest at the same time which I want to combine the results into one backtest report, how can I do this?

Since these 2 strategies have different buy or short point e.g. one will buy at breakout point (settradedelays 0,0,0,0) but the others will buy at open price (settradedelays 1,1,1,1), I am wondering how can I combine it into one AFL.

Thank you!!
 

trash

Well-Known Member
#4
If i want to do the backtest at the same time which I want to combine the results into one backtest report, how can I do this?

Since these 2 strategies have different buy or short point e.g. one will buy at breakout point (settradedelays 0,0,0,0) but the others will buy at open price (settradedelays 1,1,1,1), I am wondering how can I combine it into one AFL.

Thank you!!
Use Ref() function then not settradedelays.
 

extremist

Well-Known Member
#5
@jacklcl824

First u find the ultimate objective.

Whether u want the common signal out of it or want both the signals

1. if u want the common signal then just combine the condition and then explore.
2. if u want both the signals then add two exploration lines like
for break out - boBUY and for open buy - oBUY.
 
#6
@jacklcl824

First u find the ultimate objective.

Whether u want the common signal out of it or want both the signals

1. if u want the common signal then just combine the condition and then explore.
2. if u want both the signals then add two exploration lines like
for break out - boBUY and for open buy - oBUY.
Hi extremist,

Actually I want both the signals as these 2 strategies have different entry points e.g. one is breakout strategy and another is anti-trend strategy.

As these 2 strategies have different entry point (e.g. one will buy at breakout price intraday but another will buy at next day open price), i dont know how to combine it into one strategy so that i can do the backtest with one backtest report only. Currently, I test them separately in 2 analysis windows and generate 2 reports.

What I want to do is to observe the equity curve after combining 2 strategies in one.
 

extremist

Well-Known Member
#7
@jacklcl824
Actually i told u how to do tht....
read the last line.......
u might be using buy and sell for first strategy then rename those to boBuy and bosell
and for other strategy use some other name or else can keep buy and sell coz we already changed the first ones.

add two more lines in explorer and get it done.

and one more thing ......
u can simply say thanks to the people responding to u or just hit the thanks button at the lower right corner of the reply u receive...
:)