Trading Systems Leaders in this forum (automated trading systems) are winning more than 3000 pips in a month (30000$ investing one lot every time). Click here to register and get more information
View Poll Results: Would you like to see all the lessons have been gathered in one ebook?
I am going through the programming course done by codeguru, and it references this site as the location to download the samples in the tutorial, but I cannot find them anywhere. Can anyone help me?
I'm not at this stage interested in developing EAs, scripts, indicators etc, I just need to know what the various options/settings are on MT4 e.g. how to change bear & bull colours on candle charts globally not just for individual charts. Will your tutorial tell me things like that, or will it over the top for a FOREX newbie like myself?
I'm not at this stage interested in developing EAs, scripts, indicators etc, I just need to know what the various options/settings are on MT4 e.g. how to change bear & bull colours on candle charts globally not just for individual charts. Will your tutorial tell me things like that, or will it over the top for a FOREX newbie like myself?
//+------------------------------------------------------------------+
//| calculate optimal lot size |
//+------------------------------------------------------------------+
double LotsOptimized()
{
//----
double lot = Lots;
int orders = HistoryTotal(); // history orders total
int losses = 0; // number of losses orders without a break
double LotsOptimized()
{
double lot=Lots;
int orders=HistoryTotal(); // history orders total
int losses=0; // number of losses orders without a break
//---- select lot size
lot=NormalizeDouble(Risk*AccountFreeMargin()* AccountLeverage()/100000.0,1);
//---- calcuulate number of losses orders without a break
if(DecreaseFactor>0)
{
for(int i=orders-1;i>=0;i--)
{
if(OrderSelect(i,SELECT_BY_POS,MODE_HISTORY)==fals e)
{ Print("Error in history!"); break; }
if(OrderSymbol()!=Symbol() || OrderType()>OP_SELL) continue;
//----
if(OrderProfit()>0) break;
if(OrderProfit()<0) losses++;
}
if(losses>1) lot=NormalizeDouble(lot+lot*losses*DecreaseFactor, 1);
}
//---- return lot size
if(lot<0.01) lot=0.01;
return(lot);
}
Can someone suggest to me how to combine both coding into one ...?
your help, hope me win on my eas...
1st order open sell/buy loss,
then
2nd open order sell/buy increase double (2x) from previous lots...to cover loss from 1st order... hope it may win...
main things is i want to recover every losses i made by increasing the lot after each losses...
how to add multiple TP's Levels ??
how to set an EA to email me whenever a trade is placed by it ??
how to hide or lock all the codes so no one can modify it ???
I'm an old guy but I like to learn something that is maybe useful to me and/or my kids.
Anyway, is there any update and/or development and/or suggestion since you release EMA_CROSS_2.mq4 which is quiet good for me but I saw that still we can further develop it so it can reduce the MODIFY function into more positive order closing one.
Again, thanks a lot,
John
hi
i have wrote an ema cross over as well but have some problems with it
i have wonder if you can look at it or can i look at your system. we can work together to improve it