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




 
Search this Thread
  #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?
Cboe Launches BITVX Bitcoin Volatility Index and Unveils …
Prediction Markets & Event Contracts
$12M Ceasefire Contract Goes Disputed as Bandar Abbas St …
Prediction Markets & Event Contracts
Prediction Markets Expiry Day: Trump Eyes War Exit, $230 …
Prediction Markets & Event Contracts
The Great Rotation -- Small Caps Crushing Tech as Sectio …
Traders Hideout
Election Sunday Resolves: Peru Heads to Runoff at 42pct, …
Prediction Markets & Event Contracts
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Sober Journey With S&P
23 thanks
2026 Jlab journal
10 thanks
Algo automated / semi-automated trading anyone?
6 thanks
Lady Vols Primer: Trading Volatility Journal
6 thanks
2026 Fire Horse
5 thanks
  #2 (permalink)
 
vmodus's Avatar
 vmodus 
Somewhere, Delaware, USA
Systematic Algo Trader
 
Experience: Intermediate
Platform: MultiCharts
Broker: Barchart.com
Trading: Everything, it all tastes like chicken
Posts: 1,270 since Feb 2017
Thanks Given: 2,960
Thanks Received: 2,856


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 NexusFi, 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 X 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: 87


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,447 since Apr 2013
Thanks Given: 493
Thanks Received: 1,639

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 X Reply With Quote




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