DislikedJust a poverty-sticken dimbo thrashing around in the dark hoping to make a few pips here and there to save being thrown out on the street, aren't you?Ignored
Trading correlation pairs by using the other pairs 843 replies
Export All pairs or selected pairs to .csv with script 3 replies
Pairs of Currency Pairs 4 replies
Trending Pairs / Ranging Pairs 0 replies
Robot trading 120 replies
DislikedJust a poverty-sticken dimbo thrashing around in the dark hoping to make a few pips here and there to save being thrown out on the street, aren't you?Ignored
DislikedI looked at the code again and say a call to start() at the end of init(). I have removed the call and put up the newest version in post 1.
Could it be that a call to start() before the chart receives a tick causes the robot to work on incorrect figures and therefore send trades based on erroneous figures?
Ignored
DislikedJust a poverty-sticken dimbo thrashing around in the dark hoping to make a few pips here and there to save being thrown out on the street, aren't you?Ignored
DislikedYes, I had Experts Disabled and it still opened 8 trades.
How could that happen I asked myself....
Well, I had the tick sender program running.
But still strange if the Experts Tab was disabled i.e. RED ????????
ScoobsIgnored
Get_Trend(TradePair[b]);
double AtrVal = Get_ATR(TradePair[b], RetraceAtrTf, RetraceAtrMultiplier);
if(Trend == up)
{
double ask = MarketInfo(TradePair[b], MODE_ASK);
if (IsTradeAllowed())
{
if(ask <= EMA_020_M15 - AtrVal)//Immediate buy trade
{
SendOrder(TradePair[b],OP_BUY,Lots);
}//if(ask <= EMA_020_M15 - AtrVal)
if(ask > EMA_020_M15 - AtrVal)//Pending buy stop
{
SendOrder(TradePair[b],OP_BUYSTOP, Lots);
}//if(ask <= EMA_020_M15 - AtrVal)
}//if (IsTradeAllowed)
}//if(Trend == up) DislikedI think I see the flaw in my logic. Take this lot for a buy:
[code]...Ignored
DislikedSteve,
I hate to state the obvious but the reason why your account grew nicely was because there is a very strong argument for just going with a currencies current trend. Sometimes we do this commercially, especially if there is no major economic news pending etc.
Yes, you will get DD and the odd blown SL but overall unless there is NFP news etc then you should come out with a profit.
Setting your TP and SL to ATR(DAILY) will help allot.
Obviously the key is not to be entering a trade when a currencies trend is or is coming to exhaustion.
Scoobs....Ignored
DislikedCurrencySharksWithFriggingLaserBeams.mq4
extern bool CriminalIsECN = false;
extern bool CriminalIsEvil = true;
extern bool CriminalIsVeryEvil = true;
extern bool CrminialIsPinkyEvil = true;
double TakeProfit=1000000000000;Ignored
DislikedDon't tempt me. Given the mood I am in tonight, this little lot might just appear as inputs in my update to Monica's More Intelligent Sister.
Ignored
The trading logic is fine. The logic I coded into the robot entirely missed out the spot-the-retrace bit. It has been successful because it is trading in the direction of the trend; when it took a trade at the end of a retrace, that was pure luck when it was first loaded.
I know how to code the spot-the-retrace bit, so it is just a matter of getting it done.
if(ask <= EMA_020_M15 - AtrVal)//Pending buy stop
{
SendOrder(symbol,OP_BUYSTOP, Lots);
}//if(ask <= EMA_020_M15 - AtrVal) DislikedGuys, I have to be the least intelligent individual ever to start making modest profits trading forex.
I have just spent a couple of hours coding market-movement detection and hi-lo functions etc.
The I realised that the original coding was what was needed but the blasted conditionals were the wrong way around. Again. As usual.
So, in an up trend, the price has to retrace back below the EMA_020_M15. This is the correct conditional for a buy
[code]if(ask <= EMA_020_M15 - AtrVal)//Pending buy stop
{...Ignored
DislikedSteve,
As a general rule of thumb, if the price retraces by 25% of its daily ATR then you are good to place a pending order in the overall direction of the original trend.
Scoobs.Ignored
DislikedThis is really interesting.
The attached update has the ATR values on display. This shows how far the market has to move on the higher ATR time frame settings.
Maybe you guys with a better 'feel' for the markets than me could think about the ranges displayed and which UsexxxATRrt setting to use as a trade trigger. For now, the robot defaults to the H1.
Popping it on an Alpari UK demo 1H chart, there has been a retrace from a down trend. Using the 15M ATR trade trigger, the bot sent the appropriate sell stop and so appears to be working as...Ignored