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,299 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

  #11 (permalink)
TonySarlo
Chicago, illinois, usa
 
Posts: 1 since Dec 2014
Thanks Given: 0
Thanks Received: 0


chisound View Post
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.




can you show me how to do this with strategys aswell?

Reply With Quote

Can you help answer these questions
from other members on NexusFi?
Cheap historycal L1 data for stocks
Stocks and ETFs
Trade idea based off three indicators.
Traders Hideout
REcommedations for programming help
Sierra Chart
About a successful futures trader who didnt know anythin …
Psychology and Money Management
MC PL editor upgrade
MultiCharts
 
  #12 (permalink)
 ABCTG   is a Vendor
 
Posts: 2,436 since Apr 2013
Thanks Given: 482
Thanks Received: 1,629

TonySarlo,

you can use the same code, except get rid of the plots in your strategy. Just set your chart up to have 2 datastreams and you are good to go.

Regards,
ABCTG


TonySarlo View Post
can you show me how to do this with strategys aswell?


Follow me on Twitter Reply With Quote
  #13 (permalink)
evelina
napa, ca
 
Posts: 4 since Apr 2017
Thanks Given: 0
Thanks Received: 1



chisound View Post
I am using Multicharts 7

Chisound, is it possible to use only TradeStation for MTF range chart as MultiChart is not free? ($1497 to buy ahhhhh
If yes, would you be so kind to show the TradeStation setting for MTF range chart, say 5cents 15 cents of SPY
Millions thanks

Reply With Quote
  #14 (permalink)
 ABCTG   is a Vendor
 
Posts: 2,436 since Apr 2013
Thanks Given: 482
Thanks Received: 1,629

evelina,

Tradestation will not allow you to combine non time based intervals on one chart directly. There are a few possible approaches within TS, but they all require complex coding.
One way this could be accomplished is by using Price Series Providers (PSP) within code and compute indicator values on PSP data internally.

Regards,

ABCTG

Follow me on Twitter 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