NexusFi: Find Your Edge


Home Menu

 





Turning an indicator into a strategy issue


Discussion in EasyLanguage Programming

Updated
      Top Posters
    1. looks_one FastNCurious with 6 posts (0 thanks)
    2. looks_two ABCTG with 4 posts (3 thanks)
    3. looks_3 Donovan2580 with 2 posts (2 thanks)
    4. looks_4 Quick Summary with 1 posts (0 thanks)
    1. trending_up 7,903 views
    2. thumb_up 5 thanks given
    3. group 4 followers
    1. forum 12 posts
    2. attach_file 0 attachments




 
Search this Thread
  #11 (permalink)
 
FastNCurious's Avatar
 FastNCurious 
saint louis MO
 
Experience: Intermediate
Platform: TradeStation
Trading: NQ, ES, YM, CL, GC
Posts: 149 since Oct 2017
Thanks Given: 95
Thanks Received: 177

I would like to have a switch that measures average true range of a daily bar so that I can turn on/off my strategy using 5 min bars. I'm am new to using 2 data streams if that is what is needed. Anybody have any ideas for how to code my 5 min strategy to turn off/on using a different time frame measurement?

I got this code from Kevin Davey but not sure how to apply it to my EL code:


 
Code
CANTRADE=TRUE
If TrueRange>AvgTrueRange(5) then CANTRADE=FALSE;

If CANTRADE Then begin
If close>close[1] then sellshort next bar at market;

If close<close[1] then buy next bar at market;
End;

If CANTRADE=False Then begin
Sell next bar at market;
Buytocover next bar at market;
End;


Visit my NexusFi Trade Journal Reply With Quote

Can you help answer these questions
from other members on NexusFi?
Hormuz Normalization Collapses to 19.5% -- Iran Regime F …
Prediction Markets & Event Contracts
Saylors 41-Month HODL Breaks: Strategy Sells 32 BTC as $ …
Prediction Markets & Event Contracts
OneChronos Launches First Combinatorial Auction FX Venue …
Currencies
Irans Answer Due Today: Peace Surges to 33.5%, Invasion …
Prediction Markets & Event Contracts
Post-Summit Scorecard: $36M in May 15 Bets Settle Near-Z …
Prediction Markets & Event Contracts
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Sober Journey With S&P
21 thanks
2026 Jlab journal
10 thanks
Trying to learn Volume and price action correlation
8 thanks
Algo automated / semi-automated trading anyone?
6 thanks
Lady Vols Primer: Trading Volatility Journal
5 thanks
  #12 (permalink)
 ABCTG   is a Vendor
 
Posts: 2,447 since Apr 2013
Thanks Given: 493
Thanks Received: 1,639

jburke75,

when working with multiple data streams you need to tie variables to the specific data streams
and also make sure to call the function on the desired data stream.
You can find a good example for the ADX here: https://community.tradestation.com/discussions/Topic_Archive.aspx?Topic_ID=28896

Regards,

ABCTG


jburke75 View Post
I would like to have a switch that measures average true range of a daily bar so that I can turn on/off my strategy using 5 min bars. I'm am new to using 2 data streams if that is what is needed. Anybody have any ideas for how to code my 5 min strategy to turn off/on using a different time frame measurement?

I got this code from Kevin Davey but not sure how to apply it to my EL code:


 
Code
CANTRADE=TRUE
If TrueRange>AvgTrueRange(5) then CANTRADE=FALSE;

If CANTRADE Then begin
If close>close[1] then sellshort next bar at market;

If close<close[1] then buy next bar at market;
End;

If CANTRADE=False Then begin
Sell next bar at market;
Buytocover next bar at market;
End;


Follow me on X Reply With Quote
  #13 (permalink)
 
FastNCurious's Avatar
 FastNCurious 
saint louis MO
 
Experience: Intermediate
Platform: TradeStation
Trading: NQ, ES, YM, CL, GC
Posts: 149 since Oct 2017
Thanks Given: 95
Thanks Received: 177



ABCTG View Post
jburke75,

when working with multiple data streams you need to tie variables to the specific data streams
and also make sure to call the function on the desired data stream.
You can find a good example for the ADX here: https://community.tradestation.com/discussions/Topic_Archive.aspx?Topic_ID=28896

Regards,

ABCTG



The link you gave me didn't work for some reason.


Visit my NexusFi Trade Journal Reply With Quote




Last Updated on March 13, 2020


© 2026 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 - Downloads - Top
no new posts