I am using CitiFX Pro (an ECN broker) with 5 digits.
According to a post WHRoeder, I must send out a successful order first and then set my SL/TP. Is there any sample code that does this?
I Keep getting an error code 130 when I...
Suppose I determine that a stop loss has occurred.
In the start() function, how would I determine the number of pips I have lost?
is it as simple as determining the price of the original order and determining the difference between...
How do I detect when a stop loss or profit limit event has occurred?
Specifically, if I placed a BUY order and placed an OCO ---> 1. SELL_LIMIT 2. SELL_STOP how do I know if when either #1 or #2 occur?
Also, if I hit a...
In MQL4 how do I register for 1 minute candle updates?
When I create a new expert adviser script, I see the following methods:
I notice the init() and start() functions get called only once and then...
How do I generate a real-time stream of 1 hour candles (High, Low, Open, Close) on "EUR/USD"?
What if I need 4 hour candles instead of 1 hour? What needs to change?
Is there an indicator that already does this or do I need...