NexusFi: Find Your Edge


Home Menu

 





30 Minute Bars, easy Language, Multicharts


Discussion in EasyLanguage Programming

Updated
      Top Posters
    1. looks_one jimfini with 2 posts (0 thanks)
    2. looks_two Big Mike with 1 posts (1 thanks)
    3. looks_3 Lornz with 1 posts (1 thanks)
    4. looks_4 TheTrend with 1 posts (2 thanks)
    1. trending_up 3,862 views
    2. thumb_up 4 thanks given
    3. group 3 followers
    1. forum 5 posts
    2. attach_file 0 attachments




 
Search this Thread

30 Minute Bars, easy Language, Multicharts

  #1 (permalink)
 jimfini 
Sydney NSW
 
Experience: Intermediate
Platform: Multicharts
Trading: AUD/USD
Posts: 5 since Sep 2010
Thanks Given: 5
Thanks Received: 4

Hello Everyone.
New to Multicharts and easy Language Trade the ASX in Australia. Was wondering if some one could assist me with some easy Language code.

Basically would like to be able to have a horizontal line on the first 30 minute bar high and 30 minute bar low which i could then go down to a 5 minute time frame and the horizontal lines would still be there based on the first 30 minute bar high and 30 minute bar low. Any assistance appreciated..
Thanks

Started this thread Reply With Quote

Can you help answer these questions
from other members on NexusFi?
My NT8 Volume Profile Split by Asian/Euro/Open
NinjaTrader
Are there any eval firms that allow you to sink to your …
Traders Hideout
NT7 Indicator Script Troubleshooting - Camarilla Pivots
NinjaTrader
ZombieSqueeze
Platforms and Indicators
Exit Strategy
NinjaTrader
 
  #3 (permalink)
 
Big Mike's Avatar
 Big Mike 
Manta, Ecuador
Site Administrator
Developer
Swing Trader
 
Experience: Advanced
Platform: Custom solution
Broker: IBKR
Trading: Stocks & Futures
Frequency: Every few days
Duration: Weeks
Posts: 50,396 since Jun 2009
Thanks Given: 33,172
Thanks Received: 101,537


Thinking outloud, coding outloud, not tested...

 
Code
                            
input:

 
CutOffTime (0830);  // the time of day to stop looking for new H/L

vars:
 
myHigh (0),
 
myLow (0);

if 
date <> date[1then begin

  myHigh 
H;
  
myLow L;

end;

if 
time <= CutOffTime  then begin

  
if myHigh then myHigh H;
  if 
myLow then myLow L;

end;

Plot1(myHigh"myHigh");
Plot2(myLow"myLow"); 
Mike

We're here to help: just ask the community or contact our Help Desk

Quick Links: Change your Username or Register as a Vendor
Searching for trading reviews? Review this list
Lifetime Elite Membership: Sign-up for only $149 USD
Exclusive money saving offers from our Site Sponsors: Browse Offers
Report problems with the site: Using the NexusFi changelog thread
Follow me on Twitter Visit my NexusFi Trade Journal Reply With Quote
Thanked by:
  #4 (permalink)
 jimfini 
Sydney NSW
 
Experience: Intermediate
Platform: Multicharts
Trading: AUD/USD
Posts: 5 since Sep 2010
Thanks Given: 5
Thanks Received: 4

Dear All
Mike was kind enough to code the indicator above- thanks. The indicator above highlights the High and Low of the first 30,20 etc minute bar depending the time you place in the input.
I have been trading the 30 minute bar for some time now with some success and wish to turn it into a trading system and automate some of it if possible. If anyone can help with this would be fantastic my Easylanguage has improved but limited at this stage.

Requirements.
Radar screen/Real time market scanner that: Long: Goes Green when the High of the second 30 minute bar closes above the first 30 minute bar.
Radar screen/Real time market scanner that: Short: Goes Red when the Low of the second 30 minute bar closes below the first 30 minute bar


Automation Entry Rules:
Long:
If High of second 30 Minute closes above the high of the first 30 minute bar then enter at Market, Stop is placed on low of first 30 minute bar.
Short:
If low of second 30 minute bar Closes below the low of the first 30 minute bar then enter at Market, Stop is placed on the high of the first 30 minute bar.
Thanks.

Started this thread Reply With Quote
  #5 (permalink)
 TheTrend 
Paris, France
 
Experience: Advanced
Platform: Amibroker
Trading: Futures, Stocks
Posts: 95 since Jun 2011
Thanks Given: 118
Thanks Received: 105

Don't know how to manage the market scanner, hope this piece of code will help you:

 
Code
                            
Var: SL(0),NbContract(0);


If 
marketposition =0 then begin

    
If close High[1then begin
        buy 
("Long"NbContract contract next bar at market;
        
SL Low[1];
    
end;

    If 
close Low[1then begin 
        sellshort
("short"NbContract contract next bar at market;
        
SL high[1];
    
end;

end;

if 
marketposition 1 then Sell ("Long SL"NbContract shares next bar at SL stop;
if 
marketposition = -1 then buytocover("Short SL"NbContract shares next bar at SL stop

Reply With Quote
Thanked by:
  #6 (permalink)
 
Lornz's Avatar
 Lornz 
Oslo, Norway
 
Experience: Advanced
Platform: CQG, Excel
Trading: CL
Posts: 1,193 since Apr 2010


jimfini View Post
Dear All
Mike was kind enough to code the indicator above- thanks. The indicator above highlights the High and Low of the first 30,20 etc minute bar depending the time you place in the input.
I have been trading the 30 minute bar for some time now with some success and wish to turn it into a trading system and automate some of it if possible. If anyone can help with this would be fantastic my Easylanguage has improved but limited at this stage.

Requirements.
Radar screen/Real time market scanner that: Long: Goes Green when the High of the second 30 minute bar closes above the first 30 minute bar.
Radar screen/Real time market scanner that: Short: Goes Red when the Low of the second 30 minute bar closes below the first 30 minute bar


Automation Entry Rules:
Long:
If High of second 30 Minute closes above the high of the first 30 minute bar then enter at Market, Stop is placed on low of first 30 minute bar.
Short:
If low of second 30 minute bar Closes below the low of the first 30 minute bar then enter at Market, Stop is placed on the high of the first 30 minute bar.
Thanks.


I don't know how the ASX behaves, but I hope you back and forward test this rigorously before you trade it live. You might also try to optimize your time period, 30 minutes might not be the way to go.... And you might want to add in some other filters...

But the opening range can be very useful, I will say that much...

Visit my NexusFi Trade Journal Reply With Quote




Last Updated on August 9, 2011


© 2024 NexusFi™, s.a., All Rights Reserved.
Av Ricardo J. Alfaro, Century Tower, Panama City, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada)
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.
About Us - Contact Us - Site Rules, Acceptable Use, and Terms and Conditions - Privacy Policy - Downloads - Top
no new posts