Is it possible to reload another indicator with different setting

Marcos Silva
391
Marcos Silva  

Hi,

 I have been reading with no luck trying to find out if by any means is it possible for an Indicator or EA to reload another indicator on the chart with new/different settings automatically?? 

 

Thank You 

qjol
3200
qjol  

everything is possible in this century in ur case use WINAPI

https://www.mql5.com/en/forum/119595

https://www.mql5.com/en/forum/115967


o, & next time would be great to use a "search" or google it

Marcos Silva
391
Marcos Silva  

Thank you for pointing me in the right direction but unfortunately that does not answer all my questions...

Im looking to insert new/change settings when i reload the indicator/EA on the chart.  

qjol
3200
qjol  

use your imagination how to edit those parameters

for instance write the parameters to a file & let the indicator read it from there

B.T.W the indicator doesn't need to be on the chart to make it usable read more about iCustom()

& let me finish again with what i started everything is possible in this century

phi nuts
2092
phi nuts  
investguy:

Hi,

 I have been reading with no luck trying to find out if by any means is it possible for an Indicator or EA to reload another indicator on the chart with new/different settings automatically?? 

 

Thank You 


1. What for ? If it is in EA or CI, just use iCustom

2. If it is for visual purposes, from within indicator itself change the input 

extern int    input_1=1;
extern double input_2=2.0;

bool   condition;
int    change_input_1;
double change_input_2;

int start ()
   {
   switch (condition)
      {
      case 1 :
        {
        change_input_1 = 11;
        change_input_2 = 22.2;
        break;
        }
      case 2 :
        {
        change_input_1 = 111;
        change_input_2 = 222.2;
        break;
        }        
      default :
        {
        change_input_1 = input_1;
        change_input_2 = input_2;
        break;
        } 
      }
   }

 Something like that.

William Roeder
23410
William Roeder  
If it's in an EA, use iCustom. If you want the lines displayed you can use my Polyline code