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.
The way it has to be coded is not to use the delay (delay will not help in cases like these) but to break apart new order placement into two parts :
1. Placing orders without stop loss and/or take profit
2. Placing stop loss and/or take profit in separate step (when and only when an order is already accepted)
__________________________________
Now, Phoenix EA is doing that operation on 10 separate places and all of them would need to be rewritten (or the logic of the EA placing orders should be rewritten in order to be able to control potential errors strictly, and so on, and so on...) Right now I do not have the time to do the complete rewriting (it would require more time in order to do it right), so I can not promise you that I will do that .
regards
mladen
Quote:
Originally Posted by mallet52
Hey guys,
I still haveing trouble getting my ea to work with fxcm bt,they tell me that I have a problem with the ea placing sl ant tp at the same time it puts in a market order,
Mladen kindly recoded this ea for so it would accept the 5 digit pricing and now this problem came up,
It would be great if somone could code the delay in to the ea that is needed for me,or explain it in great detail ( as I have no knowalge on how to code) and I will have a go at it myself, so I don't have to keep bothering everyone else.
thankyou in advance
and to all those who have helped me in the past
I tried to change the one line of original code for the Moving Average that comes with MetaTrader 4 and place it in a seperate window but when I do it does not show all the options that I would like to have that comes with the original code i.e. like [ Ma method 'simple'] and apply to 'close' or open etc...
You are not doing anything wrong
Metatrader, for now (it is going to be changed in version 5) does not allow those "descriptive" parameter entries in custom indicators (so, the non-built-in indicators).
Quote:
Originally Posted by newcoder
I tried to change the one line of original code for the Moving Average that comes with MetaTrader 4 and place it in a seperate window but when I do it does not show all the options that I would like to have that comes with the original code i.e. like [ Ma method 'simple'] and apply to 'close' or open etc...
I am new to mq4 and i am trying to create a display on screen when there is a crossover for my custom MACDs. Below is my code but the alerts keep poping up every few minutes.
How can i code it to display alerts only once every hour? Or one alert per bar?
if ((MACDM_L11 < MACDS_L11 && MACDM_L10 < MACDS_L10)) { MACD2="IN UPTREND"; colt14=LimeGreen; }
if ((MACDM_L11 > MACDS_L11 && MACDM_L10 > MACDS_L10)) { MACD2="IN DOWNTREND"; colt14=Red; }
if ((MACDM_L11 > MACDS_L11 && MACDM_L10 < MACDS_L10)) { MACD2="NEW UP CROSSING"; colt14=LimeGreen; }
if ((MACDM_L11 < MACDS_L11 && MACDM_L10 > MACDS_L10)) { MACD2="NEW DOWN CROSSING"; colt14=Red; }
if(MACD1=="NEW UP CROSSING"&&MACD2=="IN UPTREND")
Alert(Symbol()," - ","H1:"," MACD MAIN UPTREND MOVEMENT"," at ", Bid, " - ",TimeToStr(CurTime(),TIME_SECONDS));
if(MACD1=="NEW DOWN CROSSING"&&MACD2=="IN DOWNTREND")
Alert(Symbol()," - ","H1:"," MACD MAIN DOWNTREND MOVEMENT"," at ", Bid, " - ",TimeToStr(CurTime(),TIME_SECONDS));
if(MACD2=="NEW UP CROSSING"&&MACD1=="IN UPTREND")
Alert(Symbol()," - ","H1:"," MACD, MAIN TREND CHANGE TO UPTREND"," at ", Bid, " - ",TimeToStr(CurTime(),TIME_SECONDS));
if(MACD2=="NEW DOWN CROSSING"&&MACD1=="IN DOWNTREND")
Alert(Symbol()," - ","H1:"," MACD, MAIN TREND CHANGE TO DOWNTREND"," at ", Bid, " - ",TimeToStr(CurTime(),TIME_SECONDS));
Problem:
EA enters trades per Fractals signals, exits by Heiken Achi Smoothed.
Every now and then both indicators fight - Fractals opens a trade, Heiken closes it imediately... constantly on one bar (Balance goes waaay down).
I would like to code EA to only trade once per bar, like if there is order in History on current day, no more trading for today.