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 5,596 views
    2. thumb_up 5 thanks given
    3. group 4 followers
    1. forum 12 posts
    2. attach_file 0 attachments




 
Search this Thread

Turning an indicator into a strategy issue

  #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?
ZombieSqueeze
Platforms and Indicators
MC PL editor upgrade
MultiCharts
Better Renko Gaps
The Elite Circle
Quant vue
Trading Reviews and Vendors
NexusFi Journal Challenge - May 2024
Feedback and Announcements
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
What is Markets Chat (markets.chat) real-time trading ro …
72 thanks
Spoo-nalysis ES e-mini futures S&P 500
55 thanks
Just another trading journal: PA, Wyckoff & Trends
27 thanks
Bigger Wins or Fewer Losses?
24 thanks
The Program
16 thanks
  #12 (permalink)
 ABCTG   is a Vendor
 
Posts: 2,436 since Apr 2013
Thanks Given: 482
Thanks Received: 1,628

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 Twitter 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


© 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