Welcome to NexusFi: the best trading community on the planet, with over 150,000 members Sign Up Now for Free
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 for basic access, or support us by becoming an Elite Member -- see if you qualify for a discount below.
-- Big Mike, Site Administrator
(If you already have an account, login at the top of the page)
Hi, I am looking for a thinkorswim study for 60 min 20 bar EMA on 5 min chart.
In tradestation, the coding is as below;
Inputs: length(20);
If CurrentBar = 240 then Value1 = xaverage(C,240);
If CurrentBar >240 then begin
If Fracportion((time- -30)/100)= =0 or time =1315 then begin
value1 = =value1[1] + (2 / (Length+ 1))*( C - value1[1]);
Value2 = value1;
Plot1(value1, "60min 20EMA");
end
else begin
Value2 = value1 + (2 / (Length + 1 )) * ( C - value1[1]);
Plot1(value2, "60 min 20EMA");
end;end;
Thanks,
Can you help answer these questions from other members on NexusFi?
TradeStation’s EasyLanguage that very accurately plot the 15 and 60 minute EMAs on the 5 minute chart
15 minute EMA plotted on a 5 minute chart
Inputs: length(20);
If CurrentBar = 60 then Value1 = xaverage(C, 60);
If CurrentBar > 60 then begin
If Fracportion(time/15) = 0 then begin
value1 = value1[1] + (2 / ( Length + 1 )) * ( C – value1[1] );
Value2 = value1;
Plot1(value1, “15 min 20EMA”);
end
else begin
Value2 = value1 + (2 / ( Length + 1 )) * ( C – value1[1] );
Plot1(value2, “15 min 20EMA”);
end;end;
60 minute EMA plotted on a 5 minute chart
Inputs: length(20);
If CurrentBar = 240 then Value1 = xaverage(C, 240);
If CurrentBar > 240 then begin
If Fracportion((time – 30)/100) = 0 or time =1315 then begin
value1 = value1[1] + (2 / ( Length + 1 )) * ( C – value1[1] );
Value2 = value1;
Plot1(value1, “60 min 20EMA”);
end
else begin
Value2 = value1 + (2 / ( Length + 1 )) * ( C – value1[1] );
Plot1(value2, “60 min 20EMA”);
end;end;