Probacktest returns no data
Forums › ProRealTime English forum › ProOrder support › Probacktest returns no data
- This topic has 10 replies, 3 voices, and was last updated 1 year ago by cyrillic.
-
-
11/15/2022 at 1:42 PM #20421211/15/2022 at 2:16 PM #20421712345678910111213141516171819202122232425DEFPARAM CumulateOrders = FalseDEFPARAM FlatBefore = 140000DEFPARAM FlatAfter= 210000//buy signala=Average[50](Close)b=Average[50](1)c=a>bif c then// Detection of a bullish engulfing lineCondition1 = Close[1] < Open[1]Condition2 = Open < Close[1]Condition3 = Close > Open[1]Condition4 = Open < Close// Detection of a bearish engulfing lineCondition5 = Close[1] > Open[1]Condition6 = Close < OpenCondition7 = Open > Close[1]Condition8 = Close < Open[1]IF Condition1 AND Condition2 AND Condition3 AND Condition4 THENbuy at marketset target $profit 55set stop ploss 5endifendif11/15/2022 at 2:33 PM #20421911/15/2022 at 2:38 PM #204221
result is “no data”
I tried on DJI 1 min TF and I get 72 trades and equity curve etc.
What do you mean by …’no data’
1 user thanked author for this post.
11/15/2022 at 7:35 PM #204231Now I get arrows on the chart but the statistics of closed trades all read zero
My chart is the Nasdaq 100 1 min and 2 mins
I am interested in the MACD also but as soon as MACDline appears a warning is flagged up….(line 2 )/// Calculation of the MACD line
MACDLine = ExponentialAverage[12](Close) – ExponentialAverage[26](Close)// buy condition
If MACDline crosses under MACDSignalLine then
Buy at market
Endif/ Calculation of the MACD line
MACDLine = ExponentialAverage[12](Close) – ExponentialAverage[26](Close)I have to change the MACD line…
Would it be possible to change it to a MACDSignalLine to b then
A = ExponentialAverage[12](Close) – ExponentialAverage[26](Close)b = ExponentialAverage[9](a)
// buy condition
If a crosses under b then
Buy at market
Endif
SET STOP %LOSS 10
//sell condition
if a crosses over b then
sell at market11/15/2022 at 8:51 PM #204234statistics of closed trades all read zero My chart is the Nasdaq 100 1 min and 2 mins
Try your code on DJI 1 min TF with SL at 80 and TP at 80 (line 22 and 23 on your original code on your 2nd post above) … tell us what you get?
1 user thanked author for this post.
11/16/2022 at 1:58 PM #20425511/16/2022 at 3:13 PM #20426411/16/2022 at 6:03 PM #204279As you can see from the attached pic, your first code entered quite a lot of tradesover 5K units of 1-minute TF on Nasdaq 100.
Try checking the number of units used, capital and spread…I can’t figure out why!
1 user thanked author for this post.
11/16/2022 at 6:43 PM #20428211/22/2022 at 3:29 PM #204658Hi
I have found the answer to this problem.
The “Launch program” brings up the latest version V11 which will not produce statistics.
Trying the previous version, V10.3 returns complete stats and overview.
I attempted a simple MACD bullish crossover but the backtest panel flagged the first “MACD” so I had to change it.
Is this a valid coding ?
It backtests but some of the flags are not the same as the chart I am observing.
Amended MACD
a = ExponentialAverage[12](Close) – ExponentialAverage[26](Close)
b = ExponentialAverage[9](a)
// buy condition
If a crosses under b then
Buy at market
Endif
SET STOP $LOSS 10 -
AuthorPosts
Find exclusive trading pro-tools on