ATR of only green candles - futures io
futures io futures trading



ATR of only green candles


Discussion in EasyLanguage Programming

Updated by Kolnidrei
    1. trending_up 1,274 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
 

ATR of only green candles

(login for full post details)
  #1 (permalink)
Tel aviv israel
 
 
Posts: 1 since Aug 2020
Thanks: 0 given, 0 received

Hi guys,
How can i program an indicator the does an average of only the last 14 green candles?
or red candles.. doesn't matter
thanks

Reply With Quote

Can you help answer these questions
from other members on futures io?
Do You Have A PlayBooks/What Form Does It Take?
Traders Hideout
Do you know any futures platform that allows grid automation like shown on this vid?
Platforms and Indicators
3x Fangdango
Traders Hideout
FX Futures have been nagging me for a while
Currencies
Range bar differences in Tradestation vs. TOS
TradeStation
 
 
(login for full post details)
  #2 (permalink)
Lyon/France
 
 
Posts: 4 since Aug 2012
Thanks: 1 given, 3 received

 
Code
Input:
Period(14);
vars:
greenarraycounter(0),redarraycounter(0);
Arrays:
greenArray[Period](0),
redArray[Period](0);

if C>O then begin
greenarraycounter=greenarraycounter+1;
if greenarraycounter=Period+1 then greenarraycounter=1;
greenArray[greenarraycounter]=C;
value1 = AverageArray(greenArray);
Plot1(value1,"GreenAvg",green);
end;
if C<O then begin
redarraycounter=redarraycounter+1;
if redarraycounter=Period+1 then redarraycounter=1;
redArray[redarraycounter]=C;
value2 = AverageArray(redArray);
Plot2(value2,"redAvg",red);
end;

Reply With Quote
 
(login for full post details)
  #3 (permalink)
Lyon/France
 
 
Posts: 4 since Aug 2012
Thanks: 1 given, 3 received


the above code is just for the average, if you want the ATR you need to replace the 'C' by 'H-L'...

Reply With Quote


futures io Trading Community Platforms and Indicators EasyLanguage Programming > ATR of only green candles


August 16, 2020


Upcoming Webinars and Events
     



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