Hey Silence, I'm having a great time with your mastermind code. Here is what you might be looking for.
double newStopLoss()
{
double x;
x = iMA(NULL, 0, 4, 0, MODE_EMA, PRICE_CLOSE, 0);
return(NormalizeDouble(x, Digits));
}
What this code will do is create a new stop loss value based on the 4-period Exponential moving average.
You then call your trailing stop manager routine with a new stop loss value.
serpentsnoir
Hey Silence, I'm having a great time with your mastermind code. Here is what you might be looking for.
double newStopLoss()
{
double x;
x = iMA(NULL, 0, 4, 0, MODE_EMA, PRICE_CLOSE, 0);
return(NormalizeDouble(x, Digits));
}
What this code will do is create a new stop loss value based on the 4-period Exponential moving average.
You then call your trailing stop manager routine with a new stop loss value.
serpentsnoir
Thanks!!
Greetings Silence
Just wanted to inform you that yesterday I decided to use mastermind3 that you created on my new real account for the first time. As I'm writing now I have made more than 250% with this EA. So thanx to you
Greetings Silence
Just wanted to inform you that yesterday I decided to use mastermind3 that you created on my new real account for the first time. As I'm writing now I have made more than 250% with this EA. So thanx to you
wanda,
What currencies are you trading and what settings are you using. I'm finding mastermind does a great job 90% or more of the time. but the few trades that don't fit the model kill my account.
![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
I've been working on the CliffHanger for some time now...
And I'm trying to get the code to modify a specific lot's stop to equal a specific indicator's price...AND update the modification throughout time, or modify the positions stop everytime the indicator's price changes.
How do I do this.
I know it's very simple, but i can't place my brain on it.
Basically what you see is what you get.
Indicator & Expert Advisor.
Red to Sell,
Green to Buy.
But I need to know how to get the script to Modify the Stop of a current position/s.
Thanks a MILLION,
Silence