Breakout Of 30 minute Bar at 1200 Lunch - futures io
futures io futures trading



Breakout Of 30 minute Bar at 1200 Lunch


Discussion in EasyLanguage Programming

Updated
      Top Posters
    1. looks_one Joe50 with 5 posts (1 thanks)
    2. looks_two edgefirst with 1 posts (0 thanks)
    3. looks_3 GoldenRatio with 1 posts (2 thanks)
    4. looks_4 SidewalkAerobics with 1 posts (1 thanks)
      Best Posters
    1. looks_one GoldenRatio with 2 thanks per post
    2. looks_two SidewalkAerobics with 1 thanks per post
    3. looks_3 ABCTG with 1 thanks per post
    4. looks_4 Joe50 with 0.2 thanks per post
    1. trending_up 665 views
    2. thumb_up 5 thanks given
    3. group 4 followers
    1. forum 9 posts
    2. attach_file 0 attachments




Welcome to futures io: the largest futures trading community on the planet, with well over 125,000 members
  • 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 and simple.

-- Big Mike, Site Administrator

(If you already have an account, login at the top of the page)

 
Search this Thread
 

Breakout Of 30 minute Bar at 1200 Lunch

(login for full post details)
  #1 (permalink)
HONOLULU
 
 
Posts: 23 since Feb 2019
Thanks: 6 given, 3 received

Hello and thankyou for reading this,


I am trying to create the script in Tradestation for trading the 1200 noon bar, so if the price exceeds the high by .01 points or low .01 points a trade is triggered.

I have tried many scripts which reference a time but they are not using the high and low of the 1200 bar unless the trigger time is 1230. If the time is 1330 and there is a breakout it references the 1300 bar not the 1200 bar. What I am trying to do is use the 1200 bar as a static bar so if there is a breakout at 3:30 it must use the high +.01 or the low-.01 of the 1200 bar to trigger the signal.

I have tried for days to accomplish this and looked at examples in this forum which I adjusted, but it is still incorrect.

Thankyou to everyone who reads this.

Reply With Quote

Can you help answer these questions
from other members on futures io?
COTbase for quant trading?
Elite Algorithmic NinjaTrader Trading
Which kind of Blockvolume is visible? - order processing
Emini and Emicro Index
SimplerOptions
Trading Reviews and Vendors
Webinar: Finding your own way in trading w/Adam Grimes
The Elite Circle
NT8 indicator to simulate a Funding Evaluation where to …
NinjaTrader
 
 
(login for full post details)
  #3 (permalink)
Los Angels
 
Experience: Intermediate
Platform: MultiChart
Trading: Emini ES
 
Posts: 115 since Aug 2018
Thanks: 173 given, 70 received



Joe50 View Post
Hello and thankyou for reading this,


I am trying to create the script in Tradestation for trading the 1200 noon bar, so if the price exceeds the high by .01 points or low .01 points a trade is triggered.

I have tried many scripts which reference a time but they are not using the high and low of the 1200 bar unless the trigger time is 1230. If the time is 1330 and there is a breakout it references the 1300 bar not the 1200 bar. What I am trying to do is use the 1200 bar as a static bar so if there is a breakout at 3:30 it must use the high +.01 or the low-.01 of the 1200 bar to trigger the signal.

I have tried for days to accomplish this and looked at examples in this forum which I adjusted, but it is still incorrect.

Thankyou to everyone who reads this.

Here is a line of code for an EasyLanguage entry at noon for the prior high +.01.

It assumes you are using 60 minute bars. Easy language will only trade on the "next bar". So this code activates on the 11:00 bar, but doesn't enter the trade until noon.

If time=1100 Then buy ("Noon_Breakout") 1 contracts next bar at high+.01 limit;

Please ask more questions if this type of code is not what you are looking for.

Good luck with your code.

Reply With Quote
The following user says Thank You to SidewalkAerobics for this post:
 
(login for full post details)
  #4 (permalink)
 
 
Posts: 2,230 since Apr 2013
Thanks: 409 given, 1,471 received

Hi Joe50,

depending on the time frame you can store the high and low of a specific bar inside variables and then use these variables later. If you have two variables called vHigh and vLow you could for example store values at 1200 like this (under the condition that you have bars with this timestamp):
 
Code
if Time = 1200 then
begin
   vHigh = High ;
   vLow = Low ;
end ;
Regards,

ABCTG

Follow me on Twitter Reply With Quote
The following user says Thank You to ABCTG for this post:
 
(login for full post details)
  #5 (permalink)
HONOLULU
 
 
Posts: 23 since Feb 2019
Thanks: 6 given, 3 received


SidewalkAerobics View Post
Here is a line of code for an EasyLanguage entry at noon for the prior high +.01.

It assumes you are using 60 minute bars. Easy language will only trade on the "next bar". So this code activates on the 11:00 bar, but doesn't enter the trade until noon.

If time=1100 Then buy ("Noon_Breakout") 1 contracts next bar at high+.01 limit;

Please ask more questions if this type of code is not what you are looking for.

Good luck with your code.

Thankyou for your reply and your time. Close but still off a bit. It will only buy at 1300 and nothing after. If it is 1500 it will not enter the trade.

Reply With Quote
 
(login for full post details)
  #6 (permalink)
Las Cruces, NM
 
Experience: Advanced
Platform: Tradestation, MC, NT
Broker: TradeStation, IB
Trading: Liquid futures contracts
 
Posts: 56 since Sep 2009
Thanks: 379 given, 84 received

Hi Joe50,

Assuming you are using 1min, 5min, or 30min bars.

 
Code
vars: high_at_noon(0), low_at_noon(0);

if time = 1200 then begin
    high_at_noon = High;
    low_at_noon = Low;
end;

if time > 1200 then begin
   buy next bar at high_at_noon + 0.01 stop;
   sellshort next bar at low_at_noon - 0.01 stop;
end;

Reply With Quote
 
(login for full post details)
  #7 (permalink)
HONOLULU
 
 
Posts: 23 since Feb 2019
Thanks: 6 given, 3 received


ABCTG View Post
Hi Joe50,

depending on the time frame you can store the high and low of a specific bar inside variables and then use these variables later. If you have two variables called vHigh and vLow you could for example store values at 1200 like this (under the condition that you have bars with this timestamp):
 
Code
if Time = 1200 then
begin
   vHigh = High ;
   vLow = Low ;
end ;
Regards,

ABCTG

I mixed that in with what I had and it did the trick. Thankyou for planting the seed.

Reply With Quote
 
(login for full post details)
  #8 (permalink)
HONOLULU
 
 
Posts: 23 since Feb 2019
Thanks: 6 given, 3 received


edgefirst View Post
Hi Joe50,

Assuming you are using 1min, 5min, or 30min bars.

 
Code
vars: high_at_noon(0), low_at_noon(0);

if time = 1200 then begin
    high_at_noon = High;
    low_at_noon = Low;
end;

if time > 1200 then begin
   buy next bar at high_at_noon + 0.01 stop;
   sellshort next bar at low_at_noon - 0.01 stop;
end;

I just figured it out. Thankyou very much for your time !

Reply With Quote
 
(login for full post details)
  #9 (permalink)
HONOLULU
 
 
Posts: 23 since Feb 2019
Thanks: 6 given, 3 received

I used a combination of what was placed on this thread plus a little bit of thinking.

I greatly appreciate everyone's time !

Reply With Quote
The following user says Thank You to Joe50 for this post:
 
(login for full post details)
  #10 (permalink)
Philadelphia, PA
 
Experience: Advanced
Platform: Matlab, TradeStation
Trading: Stocks
 
GoldenRatio's Avatar
 
Posts: 207 since Aug 2012
Thanks: 5,004 given, 290 received


A good way to pay back your thanks is to post your final code, so that others who are struggling (in the future) with a similar problem may know the final solution.

Reply With Quote
The following 2 users say Thank You to GoldenRatio for this post:


futures io Trading Community Platforms and Indicators EasyLanguage Programming > Breakout Of 30 minute Bar at 1200 Lunch


Last Updated on February 27, 2019


Upcoming Webinars and Events
 

NinjaTrader Indicator Challenge!

Ongoing
 

Battlestations! Show us your trading desk - $1,500 in prizes!

March
 

Importance of Finding Your Own Way w/Adam Grimes

Elite only
 

Journal Challenge w/Jigsaw

April
     



Copyright © 2021 by futures io, s.a., Av Ricardo J. Alfaro, Century Tower, Panama, +507 833-9432, info@futures.io
All information is for educational use only and is not investment advice.
There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.
no new posts