NexusFi: Find Your Edge


Home Menu

 





Multi timeframe programming in Easylanguage


Discussion in EasyLanguage Programming

Updated
      Top Posters
    1. looks_one chisound with 5 posts (5 thanks)
    2. looks_two buylosellhi with 4 posts (0 thanks)
    3. looks_3 ABCTG with 2 posts (0 thanks)
    4. looks_4 Quick Summary with 1 posts (0 thanks)
    1. trending_up 18,274 views
    2. thumb_up 5 thanks given
    3. group 5 followers
    1. forum 13 posts
    2. attach_file 3 attachments




 
Search this Thread

Multi timeframe programming in Easylanguage

  #1 (permalink)
 buylosellhi 
new york
 
Experience: None
Platform: SierraChart
Posts: 77 since Dec 2010
Thanks Given: 4
Thanks Received: 44

Hi,
Can someone please help me with how to program a multi timeframe indicator in Easylanguage. specifically, I want to take a larger chart and display an indicator on that onto a smaller chart. For eg, a 20-EMA on 10-tick Range chart displayed on 5-tick range chart.
I'd greatly appreciate some example code, if possible.
Many thanks in advance.

Started this thread Reply With Quote

Can you help answer these questions
from other members on NexusFi?
Exit Strategy
NinjaTrader
Pivot Indicator like the old SwingTemp by Big Mike
NinjaTrader
Trade idea based off three indicators.
Traders Hideout
PowerLanguage & EasyLanguage. How to get the platfor …
EasyLanguage Programming
MC PL editor upgrade
MultiCharts
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Just another trading journal: PA, Wyckoff & Trends
31 thanks
Spoo-nalysis ES e-mini futures S&P 500
28 thanks
Tao te Trade: way of the WLD
24 thanks
Bigger Wins or Fewer Losses?
20 thanks
GFIs1 1 DAX trade per day journal
17 thanks
  #3 (permalink)
 chisound 
Chicago, IL USA
 
Experience: Advanced
Platform: Multicharts
Broker: TT and IQFeed
Trading: ES
Posts: 6 since Apr 2010
Thanks Given: 3
Thanks Received: 5


First you need to set up 2 data series on a chart. The base data series should be the one you want to view, ie 5 tick range chart in your case. You can make the second data series invisible in the Style tab of the Format Instrument dialog box of the second data series ( 10 tick range bar in your case ). Then use the following code. Data1 in the code is your 5 tick range bar and Data2 in the code is your 10 tick range bar. The following example plots the 20 bar EMA of the 5 tick range bar and the 10 tick range bar on the 5 tick range bar chart.

Inputs: Price(Close),
Len(20);

Variables: ema1(0,data1),

Reply With Quote
  #4 (permalink)
 chisound 
Chicago, IL USA
 
Experience: Advanced
Platform: Multicharts
Broker: TT and IQFeed
Trading: ES
Posts: 6 since Apr 2010
Thanks Given: 3
Thanks Received: 5

sorry messed up on my post accidentally Here we go.

First you need to set up 2 data series on a chart. The base data series should be the one you want to view, ie 5 tick range chart in your case. You can make the second data series invisible in the Style tab of the Format Instrument dialog box of the second data series ( 10 tick range bar in your case ). Then use the following code. Data1 in the code is your 5 tick range bar and Data2 in the code is your 10 tick range bar. The following example plots the 20 bar EMA of the 5 tick range bar and the 10 tick range bar on the 5 tick range bar chart.

 
Code
Inputs:  Price(Close),
           Len(20);

Variables:   ema1(0,data1),
                ema2(0,data2);

ema1 = XAverage(Price,Len) of data1;
ema2 = XAverage(Price,Len) of data2;

Plot1(ema1,"5tickEMA");
Plot2(ema2,"10tickEMA");
That should do it.

Reply With Quote
  #5 (permalink)
 buylosellhi 
new york
 
Experience: None
Platform: SierraChart
Posts: 77 since Dec 2010
Thanks Given: 4
Thanks Received: 44

hi chisound, thanks for your reply. I did try that but Range/Renko charts are not supported in multi-series charting. I think this may have to be done programmatically using pushpop.dll or global variables etc, but I'm not very comfortable with that and would need some help. thanks again

Started this thread Reply With Quote
  #6 (permalink)
 chisound 
Chicago, IL USA
 
Experience: Advanced
Platform: Multicharts
Broker: TT and IQFeed
Trading: ES
Posts: 6 since Apr 2010
Thanks Given: 3
Thanks Received: 5

I use Range charts myself with multiple data series with no problems. When i say "Range Chart" what I mean is I set the Instrument chart type to Regular and the Resolution to x Point to set it to a Range Chart. That works really well. I have verified values for multiple data series and they are correct.

Reply With Quote
  #7 (permalink)
 buylosellhi 
new york
 
Experience: None
Platform: SierraChart
Posts: 77 since Dec 2010
Thanks Given: 4
Thanks Received: 44

chisound, thanks for your reply. i'm afraid i'm not able to follow you. could you pls post a screenshot of your settings ? I cant seem to do what you've outlined in your post. thanks in advance....

Started this thread Reply With Quote
  #8 (permalink)
 chisound 
Chicago, IL USA
 
Experience: Advanced
Platform: Multicharts
Broker: TT and IQFeed
Trading: ES
Posts: 6 since Apr 2010
Thanks Given: 3
Thanks Received: 5

here you go......

Attached Thumbnails
Click image for larger version

Name:	MC1.jpg
Views:	744
Size:	59.7 KB
ID:	49978   Click image for larger version

Name:	MC2.jpg
Views:	752
Size:	83.5 KB
ID:	49979   Click image for larger version

Name:	MC3.jpg
Views:	622
Size:	71.2 KB
ID:	49980  
Reply With Quote
Thanked by:
  #9 (permalink)
 buylosellhi 
new york
 
Experience: None
Platform: SierraChart
Posts: 77 since Dec 2010
Thanks Given: 4
Thanks Received: 44

hi chisounds, thanks for your reply. what platform are you using ? is this tradestation ? looks nothing like mine....

Started this thread Reply With Quote
  #10 (permalink)
 chisound 
Chicago, IL USA
 
Experience: Advanced
Platform: Multicharts
Broker: TT and IQFeed
Trading: ES
Posts: 6 since Apr 2010
Thanks Given: 3
Thanks Received: 5


I am using Multicharts 7

Reply With Quote




Last Updated on May 28, 2018


© 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