I have an EA that i will like to reset its external variables to the default setting within the EA after a trade is taken, can you advise on how to achieve that?
Thanks
Iddy
Thanks
Iddy
Plot extern data on chart 1 reply
extern int Points = 25; 7 replies
programatically get the extern values 3 replies
Enter extern Variables into a alert window if missed. 2 replies
How to define the length of an array with an extern variable? 5 replies
QuoteDislikedint init()
{
//----
StartingEquity = AccountEquity(); ///sets the StartingEquity to be the AccountEquity When trading robot starts
TargetBestEquity = ((StartingEquity*EBHedge)+StartingEquity); //at what target level to balance hedge trading to lock in profit
TargetWorstEquity = (BestEquity-(BestEquity*SLHedge)); //at what level down from BestEquity to set stop loss hedge
//----
return(0);
}