Conditions on number of trades, reversing trade direction
Forums › ProRealTime English forum › ProOrder support › Conditions on number of trades, reversing trade direction
- This topic has 37 replies, 4 voices, and was last updated 2 years ago by
PeterSt.
-
-
11/08/2022 at 7:43 PM #203818
Good day, all! Hope all are doing well. Kindly ask community help on the coding some backtest example for the strategy.
So, long story short:
- I enter with a buy stop to go long, or a sell stop to go short.
- I enter with 3 contracts.
- Position size: 3 contracts, with profit targets of 1R, 2R, and 3R. Once my first target is hit, my stop loss becomes breakeven.
- If I get stopped out on my first signal, I can stop out and reverse (Go long, get stopped, go short or Go short, get stopped, go long) – only 3 attempts per day.
What I did so far: I can track multitimeframe, open and close positions, but can’t realize how to reverse trade if it fails with one direction, how to count correctly number of attempts, in which timeframe? and how to partially close trade.
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105DEFPARAM CumulateOrders = FalseDEFPARAM PreLoadBars = 0TIMEFRAME(30 seconds, UPDATEONCLOSE)// No new position is taken after the candlestick that closes 9:45 a.m.FinishTime = 143000// The market analysis strats at the 30-sec candlestick which closes at 9:00:30 a.m.StartTime = 120000PositionSize = 3TickScale = TICKSIZEScaleReward = 1PartialCloseCoeff = 3CloseQuantity = PositionSize/PartialCloseCoeff// Some holidays such as the 24th and 31st of December are excludedIF (Month = 5 AND Day = 1) OR (Month = 12 AND (Day = 24 OR Day = 25 OR Day = 26 OR Day = 30 OR Day = 31)) OR (Month = 1 AND Day = 1) OR (DayOfWeek = 0 OR DayOfWeek = 6) OR (Time < StartTime OR Time >= FinishTime) THENTradingDay = 0ELSETradingDay = 1ENDIF// We initialize this variable once at the beginning of the trading system.//ONCE StartTradingDay = -1// We initialize this variable once at the beginning of the trading system.ONCE StartTradingDay = -1IF (Time < StartTime AND StartTradingDay <> 0) THENCloseO = 0HighO = 0LowO = 0SellPosition = 0StartTradingDay = 0ELSIF Time = StartTime AND TradingDay = 1 THEN//ELSIF Time >= StartTime AND StartTradingDay = 0 AND TradingDay = 1 THEN// We store the index of the first bar of the trading dayIndexStartDay = IntradayBarIndexStartTradingDay = 1CloseO = CloseHighO = HighLowO = LowRangeOpen = HighO - LowOBuyLevel = HighO + TickScaleSellLevel = LowO - TickScaleStopLong = LowO - TickScaleStopShort = HighO + TickScaleENDIFTIMEFRAME(1 seconds, UPDATEONCLOSE)If IntraDayBarIndex = 0 ThenTradeONLong = 1TradeONShort = 1CntLong = 0CntShort = 0LastTrade = 0count = 0EndifIF Time > StartTime AND TradingDay = 1 THEN//GRAPH CloseO as "CloseO"GRAPH HighO as "HighO"GRAPH LowO as "LowO"GRAPH RangeOpen as "RangeOpen"//GRAPH DayOfWeek as "DayOfWeek"//GRAPH StopShort as "StopShort"//GRAPH StopLong as "StopLong"//GRAPH TickScale as "TickScale"////GRAPH Time as "Time"//GRAPH DayOfWeek as "DayOfWeek"//GRAPH UpperLevel as "UpperLevel"//GRAPH LowerLevel as "LowerLevel"IF Close > HighO AND Not LongOnMarket AND CntLong = 0 AND CntShort = 0 THENBUY PositionSize CONTRACTS AT BuyLevel STOP//SELLSHORT PositionSize CONTRACTS AT BuyLevel STOP// Definition of the maximum amount to risk per position in case// price goes in an unfavorable direction//LastTrade = 1CntLong = CntLong + 1TradeONLong = 0count = count + 1//GRAPH CntLong as "CntLong"ELSIF Close < LowO AND Not SHORTONMARKET AND CntLong = 0 AND CntShort = 0 THENSELLSHORT PositionSize CONTRACTS AT SellLevel STOP//BUY PositionSize CONTRACTS AT SellLevel STOP// Definition of the maximum amount to risk per position in case// price goes in an unfavorable directionTradeONShort = 0//LastTrade = 2CntShort = CntShort + 1count = count + 1//GRAPH CntShort as "CntShort"ENDIFSET TARGET pPROFIT RangeOpen*ScaleRewardSET STOP PLOSS RangeOpenENDIF11/09/2022 at 6:51 PM #203870I’ve been trying to code futher and debug, but when I put GRAPH I received an error. I don’t have any problem with internet, with software, but still receiveng this when added such lines in the code and adding Graph.
1234567891011121314myCurrentProfit = STRATEGYPROFITIf myCurrentProfit < 0 thenGRAPH myCurrentProfit as "myCurrentProfit"IF LongOnMarket[1] AND NOT OnMarket THENSELLSHORT PositionSize CONTRACTS AT MARKETcount = count + 1ELSIF ShortOnMarket[1] AND NOT OnMarket THENBUY PositionSize CONTRACTS AT MARKETcount = count + 1ENDIFSET TARGET pPROFIT RangeOpen*ScaleRewardSET STOP PLOSS RangeOpenendif11/09/2022 at 7:19 PM #20387211/09/2022 at 7:36 PM #203874So, thank you for the reply, I didn’t put all code. Here we go, with what I ended up right now
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122DEFPARAM CumulateOrders = FalseDEFPARAM PreLoadBars = 0TIMEFRAME(45 seconds, UPDATEONCLOSE)// No new position is taken after the candlestick that closes 9:45 a.m.FinishTime = 103000// The market analysis strats at the 30-sec candlestick which closes at 9:00:30 a.m.StartTime = 100030PositionSize = 3TickScale = TICKSIZEScaleReward = 1PartialCloseCoeff = 3CloseQuantity = PositionSize/PartialCloseCoeff// Some holidays such as the 24th and 31st of December are excludedIF (Month = 5 AND Day = 1) OR (Month = 12 AND (Day = 24 OR Day = 25 OR Day = 26 OR Day = 30 OR Day = 31)) OR (Month = 1 AND Day = 1) OR (DayOfWeek = 0 OR DayOfWeek = 6) OR (Time < StartTime OR Time >= FinishTime) THENTradingDay = 0ELSETradingDay = 1ENDIF// We initialize this variable once at the beginning of the trading system.//ONCE StartTradingDay = -1// We initialize this variable once at the beginning of the trading system.ONCE StartTradingDay = -1IF (Time < StartTime AND StartTradingDay <> 0) THENCloseO = 0HighO = 0LowO = 0SellPosition = 0StartTradingDay = 0ELSIF Time = StartTime AND TradingDay = 1 THEN//ELSIF Time >= StartTime AND StartTradingDay = 0 AND TradingDay = 1 THEN// We store the index of the first bar of the trading dayIndexStartDay = IntradayBarIndexStartTradingDay = 1//ELSIF StartTradingDay = 1 AND Time >= StartTime AND Time <= LimitEntryTime THEN//HighClose = Close[1](High)CloseO = CloseHighO = HighLowO = LowRangeOpen = HighO - LowOBuyLevel = HighO + TickScaleSellLevel = LowO - TickScaleStopLong = LowO - TickScaleStopShort = HighO + TickScaleENDIFTIMEFRAME(1 seconds, UPDATEONCLOSE)If IntraDayBarIndex = 0 ThenTradeONLong = 1TradeONShort = 1CntLong = 0CntShort = 0LastTrade = 0TradeON = 1count = 0EndifIF Time > StartTime AND TradingDay = 1 AND TradeON = 1 AND count <3 THEN//GRAPH CloseO as "CloseO"//GRAPH HighO as "HighO"//GRAPH LowO as "LowO"//GRAPH RangeOpen as "RangeOpen"//GRAPH DayOfWeek as "DayOfWeek"//GRAPH StopShort as "StopShort"//GRAPH StopLong as "StopLong"//GRAPH TickScale as "TickScale"IF Close > HighO AND Not LongOnMarket AND Not SHORTONMARKET THENBUY PositionSize CONTRACTS AT BuyLevel STOPSET TARGET pPROFIT RangeOpen*ScaleRewardSET STOP PLOSS RangeOpen//SELLSHORT PositionSize CONTRACTS AT BuyLevel STOP// Definition of the maximum amount to risk per position in case// price goes in an unfavorable direction//LastTrade = 1CntLong = CntLong + 1TradeONLong = 0count = count + 1//GRAPH CntLong as "CntLong"ELSIF Close < LowO AND Not LongOnMarket AND Not SHORTONMARKET THENSELLSHORT PositionSize CONTRACTS AT SellLevel STOPSET TARGET pPROFIT RangeOpen*ScaleRewardSET STOP PLOSS RangeOpen//BUY PositionSize CONTRACTS AT SellLevel STOP// Definition of the maximum amount to risk per position in case// price goes in an unfavorable directionTradeONShort = 0//LastTrade = 2CntShort = CntShort + 1count = count + 1//GRAPH CntShort as "CntShort"ENDIF//myCurrentProfit = STRATEGYPROFIT//If myCurrentProfit < 0 then//GRAPH myCurrentProfit as "myCurrentProfit"IF LongOnMarket[1] AND NOT OnMarket THENSELLSHORT PositionSize CONTRACTS AT MARKETcount = count + 1ELSIF ShortOnMarket[1] AND NOT OnMarket THENBUY PositionSize CONTRACTS AT MARKETcount = count + 1ENDIFSET TARGET pPROFIT RangeOpen*ScaleRewardSET STOP PLOSS RangeOpenendifENDIFWhat I still don’t get:
1. How to determine that previous trade had a loss or profit after the close? Strategyprofit and Positionperformance don’t help me, I tried, but failed.
2. Still have the error with Graph and XML, don’t know why, discovering11/09/2022 at 9:45 PM #203885thank you for the reply
My suggestion was in relation to the screenshot of the error you posted above.
I just ran the code you posted in your last post above and I get no errors at all.
How to determine that previous trade had a loss or profit after the close?
Anybody please feel free to help mrbolt on above?
11/09/2022 at 9:46 PM #203886So, the last version, which still doesn’t work properly 🙁
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117DEFPARAM CumulateOrders = FalseDEFPARAM PreLoadBars = 0TIMEFRAME(30 seconds, UPDATEONCLOSE)// No new position is taken after the candlestickFinishTime = 103000// The market analysis strats at the 30-sec candlestick which closes at 9:00:30 a.m.StartTime = 100000PositionSize = 3TickScale = TICKSIZEScaleReward = 1PartialCloseCoeff = 3CloseQuantity = PositionSize/PartialCloseCoeff// Some holidays such as the 24th and 31st of December are excludedIF (Month = 5 AND Day = 1) OR (Month = 12 AND (Day = 24 OR Day = 25 OR Day = 26 OR Day = 30 OR Day = 31)) OR (Month = 1 AND Day = 1) OR (DayOfWeek = 0 OR DayOfWeek = 6) OR (Time < StartTime OR Time >= FinishTime) THENTradingDay = 0ELSETradingDay = 1ENDIF// We initialize this variable once at the beginning of the trading system.//ONCE StartTradingDay = -1// We initialize this variable once at the beginning of the trading system.ONCE StartTradingDay = -1IF (Time < StartTime AND StartTradingDay <> 0) THENCloseO = 0HighO = 0LowO = 0SellPosition = 0StartTradingDay = 0ELSIF Time = StartTime AND TradingDay = 1 THEN//ELSIF Time >= StartTime AND StartTradingDay = 0 AND TradingDay = 1 THEN// We store the index of the first bar of the trading dayIndexStartDay = IntradayBarIndexStartTradingDay = 1//ELSIF StartTradingDay = 1 AND Time >= StartTime AND Time <= LimitEntryTime THEN//HighClose = Close[1](High)CloseO = CloseHighO = HighLowO = LowRangeOpen = HighO - LowOBuyLevel = HighO + TickScaleSellLevel = LowO - TickScaleStopLong = LowO - TickScaleStopShort = HighO + TickScaleENDIFTIMEFRAME(1 seconds, UPDATEONCLOSE)If IntraDayBarIndex = 0 ThenTradeONLong = 1TradeONShort = 1CntLong = 0CntShort = 0LastTrade = 0count = 0Endif//GRAPH IntraDayBarIndex as "IntraDayBarIndex"IF Time > StartTime AND TradingDay = 1 AND count <= 3 THENIF Close > HighO AND count = 0 THENBUY PositionSize CONTRACTS AT BuyLevel STOPSET TARGET pPROFIT RangeOpen*ScaleRewardSET STOP PLOSS RangeOpen//GRAPH LongOnMarket as "LongOnMarket"//GRAPH SHORTONMARKET[1] as "SHORTONMARKET[1]"//GRAPH LongOnMarket as "LongOnMarket"// Definition of the maximum amount to risk per position in case// price goes in an unfavorable direction//LastTrade = 1CntLong = CntLong + 1count = count + 1//GRAPH CntLong as "CntLong"ELSIF Close < LowO AND count = 0 THENSELLSHORT PositionSize CONTRACTS AT SellLevel STOPSET TARGET pPROFIT RangeOpen*ScaleRewardSET STOP PLOSS RangeOpen//GRAPH SHORTONMARKET as "SHORTONMARKET"// Definition of the maximum amount to risk per position in case// price goes in an unfavorable direction//LastTrade = 2CntShort = CntShort + 1count = count + 1ELSIF POSITIONPERF(1) < 0 AND count >= 1 THEN//GRAPH count as "count"LongPrev = LongOnMarket[1]ShortPrev = SHORTONMARKET[1]IF LongPrev THEN//GRAPH LongPrev as "LongOnMarket[1]"//GRAPH 1 as "1"//SELLSHORT PositionSize CONTRACTS AT MARKETBUY PositionSize CONTRACTS AT MARKETSET TARGET pPROFIT RangeOpen*ScaleRewardSET STOP PLOSS RangeOpencount = count + 1ELSIF ShortPrev THEN//GRAPH ShortPrev as "SHORTONMARKET[1]"//BUY PositionSize CONTRACTS AT MARKETSELLSHORT PositionSize CONTRACTS AT MARKETSET TARGET pPROFIT RangeOpen*ScaleRewardSET STOP PLOSS RangeOpencount = count + 1ENDIFENDIFENDIFAfter closing in loss, new trade wasn’t opened.
11/09/2022 at 9:50 PM #203887thank you for the reply
My suggestion was in relation to the screenshot of the error you posted above.
I just ran the code you posted in your last post above and I get no errors at all.
How to determine that previous trade had a loss or profit after the close?
Anybody please feel free to help <span class=”bbp-author-name”>mrbolt</span> on above?
So strange, to be honest 🙁 I don’t know why I’m receiving an error with XML when adding block on trying to turn trade direction as well. So, with commented block on new trade direction GRAPH works well.
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117DEFPARAM CumulateOrders = FalseDEFPARAM PreLoadBars = 0TIMEFRAME(30 seconds, UPDATEONCLOSE)// No new position is taken after the candlestick that closes 9:45 a.m.FinishTime = 103000// The market analysis strats at the 30-sec candlestick which closes at 10:00:30 a.m.StartTime = 100000PositionSize = 3TickScale = TICKSIZEScaleReward = 1PartialCloseCoeff = 3CloseQuantity = PositionSize/PartialCloseCoeff// Some holidays such as the 24th and 31st of December are excludedIF (Month = 5 AND Day = 1) OR (Month = 12 AND (Day = 24 OR Day = 25 OR Day = 26 OR Day = 30 OR Day = 31)) OR (Month = 1 AND Day = 1) OR (DayOfWeek = 0 OR DayOfWeek = 6) OR (Time < StartTime OR Time >= FinishTime) THENTradingDay = 0ELSETradingDay = 1ENDIF// We initialize this variable once at the beginning of the trading system.//ONCE StartTradingDay = -1// We initialize this variable once at the beginning of the trading system.ONCE StartTradingDay = -1IF (Time < StartTime AND StartTradingDay <> 0) THENCloseO = 0HighO = 0LowO = 0SellPosition = 0StartTradingDay = 0ELSIF Time = StartTime AND TradingDay = 1 THEN//ELSIF Time >= StartTime AND StartTradingDay = 0 AND TradingDay = 1 THEN// We store the index of the first bar of the trading dayIndexStartDay = IntradayBarIndexStartTradingDay = 1//ELSIF StartTradingDay = 1 AND Time >= StartTime AND Time <= LimitEntryTime THEN//HighClose = Close[1](High)CloseO = CloseHighO = HighLowO = LowRangeOpen = HighO - LowOBuyLevel = HighO + TickScaleSellLevel = LowO - TickScaleStopLong = LowO - TickScaleStopShort = HighO + TickScaleENDIFTIMEFRAME(1 seconds, UPDATEONCLOSE)If IntraDayBarIndex = 0 ThenTradeONLong = 1TradeONShort = 1CntLong = 0CntShort = 0LastTrade = 0count = 0Endif//GRAPH IntraDayBarIndex as "IntraDayBarIndex"IF Time > StartTime AND TradingDay = 1 AND count <= 3 THENIF Close > HighO AND count = 0 THENBUY PositionSize CONTRACTS AT BuyLevel STOPSET TARGET pPROFIT RangeOpen*ScaleRewardSET STOP PLOSS RangeOpenGRAPH LongOnMarket as "LongOnMarket"//GRAPH SHORTONMARKET[1] as "SHORTONMARKET[1]"//GRAPH LongOnMarket as "LongOnMarket"// Definition of the maximum amount to risk per position in case// price goes in an unfavorable direction//LastTrade = 1CntLong = CntLong + 1count = count + 1//GRAPH CntLong as "CntLong"ELSIF Close < LowO AND count = 0 THENSELLSHORT PositionSize CONTRACTS AT SellLevel STOPSET TARGET pPROFIT RangeOpen*ScaleRewardSET STOP PLOSS RangeOpen//GRAPH SHORTONMARKET as "SHORTONMARKET"// Definition of the maximum amount to risk per position in case// price goes in an unfavorable direction//LastTrade = 2CntShort = CntShort + 1count = count + 1//ELSIF POSITIONPERF(1) < 0 AND count >= 1 THEN////GRAPH count as "count"//LongPrev = LongOnMarket[1]//ShortPrev = SHORTONMARKET[1]//IF LongPrev THEN////GRAPH LongPrev as "LongOnMarket[1]"////GRAPH 1 as "1"////SELLSHORT PositionSize CONTRACTS AT MARKET//BUY PositionSize CONTRACTS AT MARKET//SET TARGET pPROFIT RangeOpen*ScaleReward//SET STOP PLOSS RangeOpen//count = count + 1//ELSIF ShortPrev THEN////GRAPH ShortPrev as "SHORTONMARKET[1]"////BUY PositionSize CONTRACTS AT MARKET//SELLSHORT PositionSize CONTRACTS AT MARKET//SET TARGET pPROFIT RangeOpen*ScaleReward//SET STOP PLOSS RangeOpen//count = count + 1//ENDIFENDIFENDIF11/10/2022 at 2:31 PM #20394511/10/2022 at 3:48 PM #203949Thanks for the asking, much appreciated. So, almost all, I’d say.
Just have two qestions:
1. What does it mean closing trade like Buy(exit) or Sell(exit)?
2. Position size: 3 contracts, with profit targets of 1R, 2R, and 3R. Once my first target is hit, my stop loss becomes breakeven. – may you suggest about that, how to tackle it?123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111DEFPARAM CumulateOrders = FalseDEFPARAM PreLoadBars = 0TIMEFRAME(30 seconds, UPDATEONCLOSE)// No new position is taken after the candlestick that closes 9:45 a.m.FinishTime = 103000// The market analysis strats at the 30-sec candlestick which closes at 9:00:30 a.m.StartTime = 093030PositionSize = 3TickScale = TICKSIZEScaleReward = 1PartialCloseCoeff = 3CloseQuantity = PositionSize/PartialCloseCoeff// Some holidays such as the 24th and 31st of December are excludedIF (Month = 5 AND Day = 1) OR (Month = 12 AND (Day = 24 OR Day = 25 OR Day = 26 OR Day = 30 OR Day = 31)) OR (Month = 1 AND Day = 1) OR (DayOfWeek = 0 OR DayOfWeek = 6) OR (Time < StartTime OR Time >= FinishTime) THENTradingDay = 0ELSETradingDay = 1ENDIF// We initialize this variable once at the beginning of the trading system.//ONCE StartTradingDay = -1// We initialize this variable once at the beginning of the trading system.ONCE StartTradingDay = -1IF (Time < StartTime AND StartTradingDay <> 0) THENCloseO = 0HighO = 0LowO = 0SellPosition = 0StartTradingDay = 0ELSIF Time = StartTime AND TradingDay = 1 THEN//ELSIF Time >= StartTime AND StartTradingDay = 0 AND TradingDay = 1 THEN// We store the index of the first bar of the trading dayIndexStartDay = IntradayBarIndexStartTradingDay = 1//ELSIF StartTradingDay = 1 AND Time >= StartTime AND Time <= LimitEntryTime THEN//HighClose = Close[1](High)CloseO = CloseHighO = HighLowO = LowRangeOpen = HighO - LowOBuyLevel = HighO + TickScaleSellLevel = LowO - TickScaleStopLong = LowO - TickScaleStopShort = HighO + TickScaleENDIFTIMEFRAME(1 seconds, UPDATEONCLOSE)If IntraDayBarIndex = 0 ThenTradeONLong = 1TradeONShort = 1CntLong = 0CntShort = 0LastTrade = 0count = 0CntLongExtra = 0CntShortExtra = 0Endif//GRAPH CntLong as "CntLong"//GRAPH CntShort as "CntShort"//GRAPH count as "count"//GRAPH CntShortExtra as "CntShortExtra"//GRAPH CntLongExtra as "CntLongExtra"//GRAPH IntraDayBarIndex as "IntraDayBarIndex"IF Time > StartTime AND TradingDay = 1 AND count < 3 THENIF Close > HighO AND count = 0 THENBUY PositionSize CONTRACTS AT BuyLevel STOPSET TARGET pPROFIT RangeOpen*ScaleRewardSET STOP PLOSS RangeOpenCntLong = CntLong + 1count = count + 1ELSIF Close < LowO AND count = 0 THENSELLSHORT PositionSize CONTRACTS AT SellLevel STOPSET TARGET pPROFIT RangeOpen*ScaleRewardSET STOP PLOSS RangeOpenCntShort = CntShort + 1count = count + 1ENDIFIF POSITIONPERF(1) < 0 AND count >= 1 THEN////LongPrev = LongOnMarket[1]//ShortPrev = SHORTONMARKET[1]IF (CntLong = 1 OR CntLongExtra = 1) AND NOT OnMarket THENcount = count + 1CntShortExtra = CntShortExtra + 1SELLSHORT PositionSize CONTRACTS AT MARKETSET TARGET pPROFIT RangeOpen*ScaleRewardSET STOP PLOSS RangeOpenELSIF (CntShort = 1 OR CntShortExtra = 1) AND NOT OnMarket THENBUY PositionSize CONTRACTS AT MARKETSET TARGET pPROFIT RangeOpen*ScaleRewardSET STOP PLOSS RangeOpencount = count + 1CntLongExtra = CntLongExtra + 1ENDIFENDIFENDIF11/10/2022 at 5:21 PM #203952What does it mean closing trade like Buy(exit) or Sell(exit)?
To Exit a Buy (i.e a Long trade) we use Sell.
To Exit a SellShort (i.e. a Short trade) we use ExitShort.
11/10/2022 at 5:34 PM #203953Position size: 3 contracts, with profit targets of 1R, 2R, and 3R. Once my first target is hit, my stop loss becomes breakeven. – may you suggest about that, how to tackle it?
Am I correct in saying that above is not (currently) in your code (posted above) in any form?
So you are looking for somebody to post a new snippet which achieves what you ask for above?
11/10/2022 at 5:44 PM #203954Grahal, let me comment:
1. Ok, about exiting what you mentioned, I understand, I don’t understand why I see such trades in the order list if I have stop loss all the time? I mean I see trades with label “profit” and “loss” and label “exit” appears so rare, but it appears, so, I’m trying understand what it is, may be some glitch in data or something else
2. In general, it’d be great, but at least I’m seeking some clue how to do it11/10/2022 at 8:08 PM #203962label “profit” and “loss” and label “exit” appears so rare
Where are you seeing these labels? A screenshot will help loads.
11/10/2022 at 8:56 PM #203964So, here you go.
1. You can find in in order list. Because of such “exit” trades I have wrong trade with another direction, you can see it for 21st October. Moreover, the difference is 1 point(?), like spread I put (?).
2. Also, may you suggest what spread I should put for ES mini futures? I didn’t find yet what does it mean 1 points for backtesting.11/10/2022 at 9:00 PM #203966 -
AuthorPosts
Find exclusive trading pro-tools on