You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
which link can I download this expert advisor please.
thanks
Hi piusato1,
On this page: https://www.mql5.com/en/code/11137
I am interested in SAT3 too and would appreciate a download link!
But I do have another question about SmartAss.
From the code I read that your trading window is every working day 00:00 - 00:16:
But what is the the time-zone of 00:00 - 00:16 or what is your GMT-Offset?
Doesn't it matter?
Thanks, calli
I used SAT3 and smartasstrade-v2, I see SAT3 better. But my computer has been reinstall window, so I lost file SAT3 ea.
Please send it to me via messages ! Thank you very much !
I am interested in SAT3 too and would appreciate a download link!
But I do have another question about SmartAss.
From the code I read that your trading window is every working day 00:00 - 00:16:
But what is the the time-zone of 00:00 - 00:16 or what is your GMT-Offset?
Doesn't it matter?
Thanks, calli
SmartAss shows very nice profit on my backtest (GBPUSD, 1H, starting 2015-8-20), however, I never see a buy trade, even when moving the start date to avoid sell trades. Is that by design or just a kink in the EA?
Hi: I went through the code, it seems the problem is the variable Upward - it is initialised to false and stays that way regardless of oss and osb etc. However, even with the fix, oss and osb never get to 3 as required, so no trade ever.
My attempt to fix the problem:
int SmartAss() //--function: Check trend and calculation order.
{
//----
SignalBuy=false;
SignalSell=false;
bool FlgUpward = false; // add this variable
bool Upward;
bool OrHdg;
int upm,dnm;
int osb,oss,x;
ResetLastError();
RefreshRates();
//--
for(x=0;x<3;x++)
{
if (iOsMA(symbol,TFX[x],12,26,9,6,0)>iOsMA(symbol,TFX[x],12,26,9,6,1))
{osb++;}
if (iOsMA(symbol,TFX[x],12,26,9,6,0)<iOsMA(symbol,TFX[x],12,26,9,6,1))
{oss++;}
//--
if (iMA(symbol,TFX[x],20,0,0,0,0)>iMA(symbol,TFX[x],20,0,0,1,0))
{upm++;}
else {dnm++;}
}
//--
if (osb==3 && upm>=2)
{
Upward=true;
FlgUpward = true; // change here
}
if (oss==3 && dnm>=2)
{
Upward=false;
FlgUpward = true; // change here
}
if (FlgUpward == false);
{return(0);} // return if FlgUpward has not flipped
//--
Hi: I went through the code, it seems the problem is the variable Upward - it is initialised to false and stays that way regardless of oss and osb etc. However, even with the fix, oss and osb never get to 3 as required, so no trade ever.
My attempt to fix the problem:
int SmartAss() //--function: Check trend and calculation order.
{
//----
SignalBuy=false;
SignalSell=false;
bool FlgUpward = false; // add this variable
bool Upward;
bool OrHdg;
int upm,dnm;
int osb,oss,x;
ResetLastError();
RefreshRates();
//--
for(x=0;x<3;x++)
{
if (iOsMA(symbol,TFX[x],12,26,9,6,0)>iOsMA(symbol,TFX[x],12,26,9,6,1))
{osb++;}
if (iOsMA(symbol,TFX[x],12,26,9,6,0)<iOsMA(symbol,TFX[x],12,26,9,6,1))
{oss++;}
//--
if (iMA(symbol,TFX[x],20,0,0,0,0)>iMA(symbol,TFX[x],20,0,0,1,0))
{upm++;}
else {dnm++;}
}
//--
if (osb==3 && upm>=2)
{
Upward=true;
FlgUpward = true; // change here
}
if (oss==3 && dnm>=2)
{
Upward=false;
FlgUpward = true; // change here
}
if (FlgUpward == false);
{return(0);} // return if FlgUpward has not flipped
//--
You may also make a 2 bool variable: upward and dnward;