Activity
Mon
Wed
Fri
Sun
Jul
Aug
Sep
Oct
Nov
Dec
Jan
Feb
Mar
Apr
May
What is this?
Less
More

Memberships

AI Profit Boardroom

3.3k members • $59/m

G
gwt

147 members • Free

DT Market Masters

9.2k members • Free

2 contributions to gwt
Are these EL & NT8 exit rules doing the same thing?
Easylanguage Code //NEXT BAR EXIT If MarketPosition = 1 and barssinceentry > HTL then Sell next bar at market; Ninjatrader8 Code //EXIT if(Position.MarketPosition == MarketPosition.Long && (BarsSinceEntryExecution(0, "NQ_30min_BO50", 0) > HTL)) { ExitLong(Convert.ToInt32(Qty), "Exit", "NQ_30min_BO50"); } //////////////////// Explaination: In Easylanguage this code will exit the position on the open of the HTL bar + 1 So for example: HTL = 5 and MarketPosition = 1 Strategy enters at 1:00 AM and it holds 5 bars (30 min bars) which is 2.5 hours and then exits on the NEXT bar. So it really holds 3 hours and exits at 4:00:01AM In NT8 the exit condition is only valid if its been 6 bars (6 > 5 (HTl)) which means it also holds 3 hours. Is this correct? If this code matches then why is @Pierre Tran seeing incorrect exits @Zhi Cui @Dean Balton
0 likes • Jul '24
I think you just need this. if (Position.MarketPosition == MarketPosition.Long && BarsSinceEntry() > HTL)
0 likes • Jul '24
@Kevin Gong Try BarsSinceEntryExecution() or BarsSinceEntryExecution(string signalName)
NQ Day Trading Bot Improvements
NQ Bot Updated 7/6/24 Net Profit: +$28k Avg Trade: +$13 WR: +1% Max Consecutive Winners: +2 Max Consecutive Losers: -28% Max DD: -14% - Automated exits 5 mins before market close (instead of forcing you to manually exit) - Max drawdown risk reduced from 25k to 21k - Max consecutive losses reduced from 18 to 13 - Optimized Entry/Exit times
NQ Day Trading Bot Improvements
1 like • Jul '24
Very impressive improvement and NinjaTrader too? Now you are talking! Looking forward to the Ninja version for sure.
1-2 of 2
Bob Thomas
1
3points to level up
@bob-thomas-4378
Kissimmee FL futures trader. Funded with TopStep, APEX, TakeProfitTrader and FlexyTrade. 10+ years developing automated tools for NinjaTrader with C#.

Active 2d ago
Joined Jul 5, 2024
Powered by