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 have no idea how to write code, I just need a couple more imputs and an extra indicator added to the united ea (attached)
Added imputs:
more entry options:
1. Enter on fresh signal: true or false, if true a trade would only happen at a fresh signal not in the middle or at the end
2. option to pick what indicator I want entry on
3. Lock in Pip amount
4. option of trailing stop to begin at x number of pips in profit
One more indicator added to for confirmation as well as entry and exit options:
@dan7567 - what you ask is not possible, MT uses the current brokers time and this cannot be changed. If you have the souce-code, it is much easier to just alter the time trades are opened, rather then contemplating the impossible...
@fireslayer26 - adding sl/tp code is easy - either include SL price (assuming a BUY - 'OrderOpenPrice() - SL_Pips * Point') in the OrderSend() function or modify an already open order with OrderModify() function. Ditto for TP's. The trailing stop is slightly more complicated but there are literally hundreds of EA's freely available that implement these functions...
@forexarchitect - what you are asking makes no sense - first, the code you provide is a partial custom function, that is passing pre-defined system variables (OP_BUY, OP_SELL, the values you are interested in it appears...) to another custom function which you do not include...
@litcons - not meaning to sound fasicious but the thread title is "how to code", whereas you matter-of-factly tells us you cannot code at all and are looking for someone to code an EA for you, practically from scratch - maybe the "coders for hire" thread would prove more receptive...
You could either write the price as a comment then move it to each order until such time as you want to change it, use a global variable or write to file.
Trying to get swing high/low code to work on patterns other than pins
Hi,
I have an EA that calls an indicator which tells me if the price is at a swing high/low. It works fine on the current bar, so for e.g if its a pinbar and its at a swing high/low then my EA creates a buy/sell entry. Its works great as long as my EA picks up pinbars. But its no good if I need to make the entry on say an inside bar at a swing high/low because the high/low bar as passed.
This code will work for the close of the first bar but I need the code to work for close of the second or third. In other words I need a way for my EA to remember that the price is at the high/low for a few bars after the high/low.