Maxspread func. into EA / need help

 
Hi,

Does anybody have Maxspread [(Maximum spread function - manually placed maximum spread before EA starting orders), i like broker named exness, but exness don,t have fixed spreads and EA starts orders sometimes if spread is too high] script/algorithm and knows where to put it into EA script.

Greetings,
Ergo
 
esooru wrote >>
Hi,

Does anybody have Maxspread [(Maximum spread function - manually placed maximum spread before EA starting orders), i like broker named exness, but exness don,t have fixed spreads and EA starts orders sometimes if spread is too high] script/algorithm and knows where to put it into EA script.

Greetings,
Ergo

extern bool Control_Spread = true; //If check or not spread point
extern double MaxSpreadPoint = 50.0; //Spread in point

//+-----------------------------------------------------------------------------------------------------+
//CONTROL SPREAD PART//
string StringSpread="SPREAD IS NORMAL, EA is runing";
int Spread=MarketInfo(Symbol(),MODE_SPREAD);
double ChekSpread=0;
////////////////////////////////////////////////
if(Control_Spread==true)
{
if(Spread<=MaxSpreadPoint)
{
ChekSpread=1;
}
else
{
StringSpread="Spread is bigger from MaxSpreadPoint!!! Stop to run EA in "+Symbol();
}
}
/////////////////////////
if(Control_Spread==false)
{
ChekSpread=1;
StringSpread="WARNING!!!! --FALSE-- Control_Spread";
}
//+-----------------------------------------------------------------------------------------------------+
//COMMENT IN THE SCREEN PART//
Comment("-------------------------------------------------------------------","\n",
" MAXIMUM SPREAD:",MaxSpreadPoint," PAIR SPREAD:",Spread,"\n",
"-------------------------------------------------------------------","\n",
StringSpread,"\n",
"-------------------------------------------------------------------");

////////////////////////////////////////////////////

if(ChekSpread==1)

{

OrderSend..............

}

 

decompile much?

 
not
 
nobody can do this??what you mean decompile much ???
 

The code you posted was generated from an executable by a decompiler.

Post the original source code someone may help you.

 
dont have it :-(