Dark Theme
Light Theme
Trading Articles
Article Categories
Article Tools
Welcome to NexusFi: the best trading community on the planet, with over 150,000 members Sign Up Now for Free
Genuine reviews from real traders, not fake reviews from stealth vendors
Quality education from leading professional traders
We are a friendly, helpful, and positive community
We do not tolerate rude behavior, trolling, or vendors advertising in posts
We are here to help, just let us know what you need
You'll need to
register in order to view the content of the threads and start contributing to our community.
It's free for basic access, or support us by becoming an Elite Member -- see if you qualify for a discount below.
-- Big Mike, Site Administrator
(If you already have an account, login at the top of the page)
Updated November 6, 2023
Top Posters
looks_one
lrc11239
with 19 posts (0 thanks)
looks_two
numberjuani
with 17 posts (2 thanks)
looks_3
ilalovely
with 7 posts (1 thanks)
looks_4
kevinkdog
with 5 posts (0 thanks)
trending_up
13,235 views
thumb_up
3 thanks given
group
7 followers
forum
53 posts
attach_file
7 attachments
September 12th, 2019, 10:32 PM
Agoura Hills, CA USA
Experience: Advanced
Platform: Tradestation&Multicharts
Broker: TradeStation
Trading: Futures & Equities
Posts: 128 since Apr 2019
Thanks Given: 9
Thanks Received: 102
Ok I’ll try it tomorrow... so help me understand this strategy a bit... you enter the trade on either direction it breaks the range ? How wide a stop? When do you close?
September 12th, 2019, 10:58 PM
Brooklyn NY USA
Posts: 27 since Jul 2019
Thanks Given: 2
Thanks Received: 0
numberjuani
Ok I’ll try it tomorrow... so help me understand this strategy a bit... you enter the trade on either direction it breaks the
range ? How wide a stop? When do you close?
Yes. My stop is the other side of the range. I use the first 30 seconds range for crude, NQ Gold and ES futures. My targets are different for each instrument.
Sent using the NexusFi mobile app
September 13th, 2019, 12:42 PM
Agoura Hills, CA USA
Experience: Advanced
Platform: Tradestation&Multicharts
Broker: TradeStation
Trading: Futures & Equities
Posts: 128 since Apr 2019
Thanks Given: 9
Thanks Received: 102
lrc11239
Yes. My stop is the other side of the
range . I use the first 30 seconds range for crude, NQ Gold and ES futures. My targets are different for each instrument.
Sent using the
NexusFi mobile app
got it
Make sure to click Settings - > Window -> Space to the right. It'll plot into the future by as many bars as you specify there, as per this image
Inputs:
SessionStart(630),
RangeDurationBars(1),
Targets(10);
Variables:
FirstBar(0),
LastBar(0),
Period(0),
BreakoutTop(0),
BreakoutBottom(0);
if time = SessionStart then begin
LastBar = BarNumber[1];
Period = LastBar - FirstBar;
FirstBar = CurrentBar;
Print(Period);
end;
If BarNumber = FirstBar + (RangeDurationBars -1) then begin
BreakoutTop = Highest(H, CurrentBar - FirstBar + 1);
Breakoutbottom = Lowest(L, CurrentBar - FirstBar + 1);
end;
Plot1(BreakoutTop, "OpeningRangeTop");
Plot2(Breakoutbottom, "OpeningRangeBottom");
Plot3(BreakoutTop + Targets, "LE_Target");
Plot4(Breakoutbottom - Targets, "SE_Target");
If LastBaronChart then begin
Plot1[-MaxBarsForward](BreakoutTop, "OpeningRangeTop");
Plot2[-MaxBarsForward](Breakoutbottom, "OpeningRangeBottom");
Plot3[-MaxBarsForward](BreakoutTop + Targets, "LE_Target");
Plot4[-MaxBarsForward](Breakoutbottom - Targets, "SE_Target");
end;
If CurrentBar = FirstBar + Period or CurrentBar = (FirstBar + (RangeDurationBars -1 )) or FirstBar = CurrentBar then begin
SetPlotColor(1, Transparent);
SetPlotColor(2, Transparent);
SetPlotColor(3, Transparent);
SetPlotColor(4, Transparent);
end;
September 13th, 2019, 03:03 PM
Brooklyn NY USA
Posts: 27 since Jul 2019
Thanks Given: 2
Thanks Received: 0
Thank you! You are the man! I'm going to try it and let you know if everything is fine. Thanks again!
October 14th, 2019, 11:29 AM
Rome - Italy
Experience: Advanced
Platform: NinjaTrader
Trading: Bund, DAX, ES, Crude Oil, Gold, Cable, EURUSD
Posts: 10 since Apr 2016
Thanks Given: 11
Thanks Received: 3
Hi numberjuani , could you code it also for NT8 ?
numberjuani
got it
Make sure to click Settings - > Window -> Space to the right. It'll plot into the future by as many bars as you specify there, as per this image
Inputs:
SessionStart(630),
RangeDurationBars(1),
Targets(10);
Variables:
FirstBar(0),
LastBar(0),
Period(0),
BreakoutTop(0),
BreakoutBottom(0);
if time = SessionStart then begin
LastBar = BarNumber[1];
Period = LastBar - FirstBar;
FirstBar = CurrentBar;
Print(Period);
end;
If BarNumber = FirstBar + (RangeDurationBars -1) then begin
BreakoutTop = Highest(H, CurrentBar - FirstBar + 1);
Breakoutbottom = Lowest(L, CurrentBar - FirstBar + 1);
end;
Plot1(BreakoutTop, "OpeningRangeTop");
Plot2(Breakoutbottom, "OpeningRangeBottom");
Plot3(BreakoutTop + Targets, "LE_Target");
Plot4(Breakoutbottom - Targets, "SE_Target");
If LastBaronChart then begin
Plot1[-MaxBarsForward](BreakoutTop, "OpeningRangeTop");
Plot2[-MaxBarsForward](Breakoutbottom, "OpeningRangeBottom");
Plot3[-MaxBarsForward](BreakoutTop + Targets, "LE_Target");
Plot4[-MaxBarsForward](Breakoutbottom - Targets, "SE_Target");
end;
If CurrentBar = FirstBar + Period or CurrentBar = (FirstBar + (RangeDurationBars -1 )) or FirstBar = CurrentBar then begin
SetPlotColor(1, Transparent);
SetPlotColor(2, Transparent);
SetPlotColor(3, Transparent);
SetPlotColor(4, Transparent);
end;
October 14th, 2019, 11:58 AM
Agoura Hills, CA USA
Experience: Advanced
Platform: Tradestation&Multicharts
Broker: TradeStation
Trading: Futures & Equities
Posts: 128 since Apr 2019
Thanks Given: 9
Thanks Received: 102
mistershake
Hi numberjuani , could you code it also for NT8 ?
Sorry amico I only know how to code for Tradestation or Multicharts
October 14th, 2019, 02:33 PM
Rome - Italy
Experience: Advanced
Platform: NinjaTrader
Trading: Bund, DAX, ES, Crude Oil, Gold, Cable, EURUSD
Posts: 10 since Apr 2016
Thanks Given: 11
Thanks Received: 3
Is it possible to have the Multicharts code then ?
Thanks amico
numberjuani
Sorry amico I only know how to code for Tradestation or Multicharts
October 14th, 2019, 03:01 PM
Agoura Hills, CA USA
Experience: Advanced
Platform: Tradestation&Multicharts
Broker: TradeStation
Trading: Futures & Equities
Posts: 128 since Apr 2019
Thanks Given: 9
Thanks Received: 102
mistershake
Is it possible to have the
Multicharts code then ?
Thanks amico
It’s the same, both MC and TS use easy language, so that same code should work in MC
Sent using the NexusFi mobile app
February 28th, 2021, 03:38 PM
Winter Park, FL
Experience: Advanced
Platform: TS,CQG,Oec,ATP,TOS
Broker: TS,Fidelity,CQG
Trading: ES,RTY,FX
Posts: 30 since Mar 2011
Thanks Given: 15
Thanks Received: 9
Hello,
What would be settings if the ORB was set to 5 minutes? Thank you
Kr
"Yeah, well, you know, that's your opinion, man..."
November 27th, 2021, 07:55 PM
South Daytona
Posts: 10 since Mar 2021
Thanks Given: 1
Thanks Received: 1
Hi I know this is old but found this while looking for the orb strategy for tradestation. Just moved over. It is givibg me an error for the start time of 630. I am eastern so tried changing it to 930 but still having an error. Any ideas? Thanks in advance.
numberjuani
So you have to put it on a 30 sec chart, the way easy language treats seconds is a bit weird, but i think its working:
Inputs:
SessionStart(630),
RangeDurationBars(1),
StopValue(2000),
TargetValue(3000),
CloseEndOfday(True);
Variables:
FirstBar(0),
LastBar(0),
Period(0),
BreakoutTop(0),
BreakoutBottom(0);
if time = SessionStart then begin
LastBar = BarNumber[1];
Period = LastBar - FirstBar;
FirstBar = CurrentBar;
Print(Period);
end;
If BarNumber = FirstBar + (RangeDurationBars -1) then begin
BreakoutTop = Highest(H, CurrentBar - FirstBar + 1);
Breakoutbottom = Lowest(L, CurrentBar - FirstBar + 1);
end;
If BarNumber = FirstBar + (RangeDurationBars) then begin
Buy Next Bar BreakOutTop Stop;
Sellshort Next Bar BreakOutBottom Stop;
end;
If CloseendOfDay and CurrentBar = FirstBar + Period - 1 then begin
Sell next bar market;
Buy to cover next bar market;
end;
SetStopContract;
SetStopLoss(StopValue);
SetProfitTarget(TargetValue);
as an indicator: once again 30 sec chart
Inputs:
SessionStart(630),
RangeDurationBars(1);
Variables:
FirstBar(0),
LastBar(0),
Period(0),
BreakoutTop(0),
BreakoutBottom(0);
if time = SessionStart then begin
LastBar = BarNumber[1];
Period = LastBar - FirstBar;
FirstBar = CurrentBar;
Print(Period);
end;
If BarNumber = FirstBar + (RangeDurationBars -1) then begin
BreakoutTop = Highest(H, CurrentBar - FirstBar + 1);
Breakoutbottom = Lowest(L, CurrentBar - FirstBar + 1);
end;
Plot1(BreakoutTop, "OpeningRangeTop");
Plot2(Breakoutbottom, "OpeningRangeBottom");
If CurrentBar = FirstBar + Period or CurrentBar = (FirstBar + (RangeDurationBars -1 )) or FirstBar = CurrentBar then begin
SetPlotColor(1, Transparent);
SetPlotColor(2, Transparent);
end;
Last Updated on November 6, 2023