NexusFi: Find Your Edge


Home Menu

 





Make Indicator follow Strategy updates


Discussion in EasyLanguage Programming

Updated
      Top Posters
    1. looks_one ABCTG with 1 posts (0 thanks)
    2. looks_two Devin Sheets with 1 posts (0 thanks)
    3. looks_3 edgefirst with 1 posts (0 thanks)
    4. looks_4 vmodus with 1 posts (1 thanks)
    1. trending_up 7,247 views
    2. thumb_up 1 thanks given
    3. group 5 followers
    1. forum 4 posts
    2. attach_file 0 attachments




 
Search this Thread

Make Indicator follow Strategy updates

  #1 (permalink)
Devin Sheets
Salem, Oregon
 
Posts: 10 since Jun 2020
Thanks Given: 0
Thanks Received: 2

I want to have my indicators follow my strategy updates as I backtest. Right now I have to manually copy/past from one to another all the time and update both individually, but can I have a strategy include an indicator as a part of its code, or have an indicator slave to a strategy somehow?

Reply With Quote

Can you help answer these questions
from other members on NexusFi?
How to apply profiles
Traders Hideout
NT7 Indicator Script Troubleshooting - Camarilla Pivots
NinjaTrader
Better Renko Gaps
The Elite Circle
ZombieSqueeze
Platforms and Indicators
REcommedations for programming help
Sierra Chart
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Just another trading journal: PA, Wyckoff & Trends
36 thanks
Tao te Trade: way of the WLD
24 thanks
Spoo-nalysis ES e-mini futures S&P 500
21 thanks
Bigger Wins or Fewer Losses?
19 thanks
GFIs1 1 DAX trade per day journal
16 thanks
  #2 (permalink)
 
vmodus's Avatar
 vmodus 
Somewhere, Delaware, USA
 
Experience: Intermediate
Platform: MultiCharts
Broker: Barchart.com
Trading: Everything, it all tastes like chicken
Posts: 1,271 since Feb 2017
Thanks Given: 2,958
Thanks Received: 2,853


Devin Sheets View Post
I want to have my indicators follow my strategy updates as I backtest. Right now I have to manually copy/past from one to another all the time and update both individually, but can I have a strategy include an indicator as a part of its code, or have an indicator slave to a strategy somehow?

I think I may have a solution. What I do is I create a function to do the calculations, then create a strategy and indicator that uses the function. I wrote about this in the MultiCharts area of FIO, but it applies to EasyLanguage, too:



'Signals' in MultiCharts are the same things as 'Strategies' in TradeStation.

When you need to update your code, just update the function, and the strategy and indicator will use the new code. I did that with my latest strategy a few weeks ago.

So take a look at that post and see if it makes sense. The only time this doesn't work is if you have purchased or are leasing an indicator, though most vendors (e.g. Jurik) provide access to the functions.

~vmodus

Follow me on Twitter Visit my NexusFi Trade Journal Reply With Quote
Thanked by:
  #3 (permalink)
beleebala
Hong Kong China
 
Posts: 2 since Aug 2020
Thanks Given: 0
Thanks Received: 1


Hi, I have the same problem. I have been writing functions for this purpose. However, is there anyway for a strategy to make references to indicator values on a chart? Is GlobalDictionary usefully for such purpose? Thanks.

Reply With Quote
  #4 (permalink)
 edgefirst 
Las Cruces, NM
 
Experience: Advanced
Platform: Tradestation, MC, NT
Broker: TradeStation, IB
Trading: Liquid futures contracts
Posts: 56 since Sep 2009
Thanks Given: 389
Thanks Received: 86


beleebala View Post
Hi, I have the same problem. I have been writing functions for this purpose. However, is there anyway for a strategy to make references to indicator values on a chart? Is GlobalDictionary usefully for such purpose? Thanks.

It has been a while I have not coded in EL but out from my head there are the ways to share data between EL techniques:

- GlobalVariable DLL.
- All Data Everywhere DLL (ADE).
You can find both in TradeStation forum.

- AnalysisTechnique.AppStorage class in OOEL (a maybe, I have not used it for data sharing but it appears to be designed to do that)

Reply With Quote
  #5 (permalink)
 ABCTG   is a Vendor
 
Posts: 2,433 since Apr 2013
Thanks Given: 481
Thanks Received: 1,627

Devin Sheets,

it depends a bit on what you exactly want to do. If the goal is adjusting an indicator's inputs to the strategy inputs when you change these, you can use a Global Dictionary for that. This way you can detect changes to settings within the indicator and trigger a recalculation to apply the new settings.

Regards,

ABCTG


Devin Sheets View Post
I want to have my indicators follow my strategy updates as I backtest. Right now I have to manually copy/past from one to another all the time and update both individually, but can I have a strategy include an indicator as a part of its code, or have an indicator slave to a strategy somehow?


Follow me on Twitter Reply With Quote




Last Updated on September 10, 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