multiple tick chart indicator - futures io
futures io futures trading



multiple tick chart indicator


Discussion in MultiCharts

Updated by acdrew0
    1. trending_up 1,071 views
    2. thumb_up 0 thanks given
    3. group 2 followers
    1. forum 2 replies
    2. attach_file 0 attachments




Welcome to futures io: the largest futures trading community on the planet, with well over 100,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
 

multiple tick chart indicator

(login for full post details)
  #1 (permalink)
indianapolis
 
 
Posts: 15 since May 2010
Thanks: 3 given, 2 received

Iím trying to make an indicator that draws from information on 3 different tick chart levels, which I could then use for testing in market replay. I have been experimenting on how to do that in multicharts. Here is the code that I used:

inputs: MALength( 4 );

variables: MA4( 0 ), MA42( 0 ), MA43( 0 );

MA4 = AverageFC( Close, MALength );
MA42 = AverageFC( Close, MALength ) of data2;
MA43 = AverageFC( Close, MALength ) of data3;

If

MA4 > MA4[1] AND
MA42 > MA42[1] AND
MA43 > MA43[1]

then

Plot1(1,"uptrend");


This was applied to a chart with three different tick timeframes of the same symbol and then set on market replay. The results were not what I expected. It seemed to partially work, triggering only sometimes.

I am curious what the problem is. Is this type of code possible to do in multicharts. Or will I need to go about this a different way? Global variables, ADE, etc..?

Reply With Quote

 
 
(login for full post details)
  #2 (permalink)
Hamburg Germany
 
Experience: Advanced
Platform: Multicharts, Tradestation
Broker: DTN IQ
Trading: ES
 
Posts: 2,186 since Apr 2013
Thanks: 384 given, 1,421 received

acdrew0,

it's difficult to say what exactly would need to be changed when you say the results where not what you expected. What did you expect it to do or what do you want it to do?
One might see your code and and a corresponding chart and say "it's doing exactly what the code says".

When working with multiple timeframes it's usually best to tie the variables to their respective timeframes, too. I'd also reset the plot when the condition is no longer valid.
Check if the code below does what you have in mind.

Regards,
ABCTG

 
Code
inputs: MALength( 4 );

variables: MA4( 0 ), MA42( 0, Data2 ), MA43( 0, Data3 );

MA4 = AverageFC( Close, MALength );
MA42 = AverageFC( Close, MALength ) of data2;
MA43 = AverageFC( Close, MALength ) of data3;

If

MA4 > MA4[1] AND
MA42 > MA42[1] AND
MA43 > MA43[1]

then

Plot1(1,"uptrend")
else
Plot1(0,"uptrend");

Follow me on Twitter Visit my Facebook Reply With Quote
 
(login for full post details)
  #3 (permalink)
indianapolis
 
 
Posts: 15 since May 2010
Thanks: 3 given, 2 received


Hi ABCTG, Thank you for the response, that helped a lot.

You're right, I should have explained a little more. I was expecting to get the situation in which intratick, when all three moving averages were sloping upwards, the indicator would fire. I was experiencing more of the indicators showing only at the high tick frame end of bar and then sometimes it was not showing up at all when I assumed the conditions were met.

Tying the variable to the timeframe made the indicator behave more like what I was hoping. But, I can't seem to wrap my head around how that makes the calculation different. Do you by chance know why?

I realized that the multiframe tick chart was not able to update tick by tick in market replay. So, i'm not sure if this will be useful for my backtesting, maybe only useable in real time.

Reply With Quote


futures io Trading Community Platforms and Indicators MultiCharts > multiple tick chart indicator


April 30, 2015


Upcoming Webinars and Events
 

Every journal equals ten meals for the hungry

Now
     



Copyright © 2020 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