Forums ProRealTime English forum ProRealTime platform support Centralization of queries and suggestions on ProRealTime Reply To: Centralization of queries and suggestions on ProRealTime

#46258

Embedding indicators in each strategy, rather than CALLing it,  has been often reported as the best solution to efficiency.

That may be true when running strategies, certainly not when mantaining code! In case I need to change the code of my indicator, for improvements or bug corrections, I will have to repeat the same job “n” times, once for each strategy using that code!

Two improvements might make the whole job easier:

  1. I suggest to add the INCLUDE keyword to make it easy to reuse the same code
    INCLUDE “MyOwn_MA.txt”
    The code “MyOwn_MA.txt” should be uploaded in PRT’s server like Indicators/Screeners/Strategies.  A “CODE” button (in addition to INDICATORS and BACKTESTING/AUTOMATED TRADING) should be added to the platform.
  2. Of course any (modified) strategy should be stopped and restarted. To avoid this I suggest the command UPDATE (next to EXTEND expiring date) that, when clicked, will make the server reload strategies automatically without altering history and performance details. In case a strategy has any open trade, ProOrder should schedule the UPDATE at a later moment, as soon as the current trade is closed.