Welcome to Forex-TSD!, one of the largest Forex forums worldwide, where you will be able to find the most complete and reliable Forex information imaginable.
From the list below, select the forum that you want to visit and register to post, as many times you want. It’s absolutely free. Click here for registering on Forex-TSD.
Exclusive Forum
The Exclusive Forum is the only paid section. Once you subscribe, you will get free access to real cutting-edge Trading Systems (automated and not), Indicators, Signals, Articles, etc., that will help and guide you, in ways that you could only imagine, with your Forex trading.
Elite Section
Get access to private discussions, specialized support, indicators and trading systems reported every week.
Advanced Elite Section
For professional traders, trading system developers and any other member who may need to use and/or convert, the most cutting-edge exclusive indicators and trading systems for MT4 and MT5.
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