Alessandro Faggioni: With what code can I do that?
|
|
|
Are you in your period lol?
I just asked for the name of a command that can check the direction of the Market, not to give me a 100% profitable EA
Alessandro Faggioni:
Are you in your period lol? I just asked for the name of a command that can check the direction of the Market, |
|
Select the OP_BUY order and compare OrderOpenPrice() to OrderClosePrice(). Or look at OrderProfit().
That will tell you if the market has moved against your position.
Remember to take into consideration spread i.e. the position might be moving in your favour but still negative.
Or you can just store the opening price as a variable for later comparison. But that won't recover well from terminal restarts etc.
Select the OP_BUY order and compare OrderOpenPrice() to OrderClosePrice(). Or look at OrderProfit().
That will tell you if the market has moved against your position.
Remember to take into consideration spread i.e. the position might be moving in your favour but still negative.
Or you can just store the opening price as a variable for later comparison. But that won't recover well from terminal restarts etc.
Thank you really much.
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Hello everyone
I'm trying to setup a new trading strategy
It's my first, so I have a question.
Let's say I start with OP_BUY with a TakeProfit of 2 pips
If the martket goes down, so taking no profit, I want to do something else
So
{ OrderSend(Symbol(), OP_BUY, etc...)
if(the market goes down open another order)
}
With what code can I do that?