Any rookie question, so as not to clutter up the forum. Professionals, don't pass by. Nowhere without you - 6. - page 397
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Good evening to all. I am a beginner and would like to ask the following question. How to place a stop loss and take profit from the current price correctly? tried to put a sell limit the current price was 1.3649 put Sell lemit 1.3700 stop 1.3600 teik 1.3750 and the order does not put!
i would like to ask you if it is because of
or maybe because of a broker that only allows open positions with 0 sl and 0 tp (don't know for sure or is this common on pending orders).
Will it work?
Nope.
invalid integer number as parameter 1 for 'OrderSelect' function.
Good evening all, I am a newbie and would like to ask the following question. How to place a stop loss and take profit from the current price correctly? I tried to place a sell limit the current price was 1.3649 I put Sell lemit 1.3700 stop 1.3600 teik 1.3750 and the order does not put!
In a sell limit order type - take profit is set below the selling price, and stop loss is higher than the selling price.
But in your case it is vice versa.
That's where the message about the wrong stop and take comes out.Another option.
Will it work?
No.
invalid integer number as parameter 1 for 'OrderSelect' function.
If we represent Buy_Key as -1 and Sell_Key as 1, we can arrange a skip function X when an order is opened, through the fulfillment of an if condition.
The logical chain of the skipping function X:
Buy_Key = -1
Sell_Key = 1
0 Opening of a trade.
1 Determine the order type based on the comment.
1.1 If the comment is Buy_Key, buy.
1.2 If the comment is Sell_Key, sell.
2 Opening of a subsequent trade.
1.1 If X is greater than zero, it is possible to open a Buy trade and impossible to open a Sell trade.
1.2 If X is less than zero, a Sell trade may be opened, and a Buy trade cannot be opened.
3 Repeat the cycle.
Again the question is: "How to make X variable dependent on Sell_Key or Buy_Key?
The concept of function
I read this about two weeks ago.
Hi camradics.
Who has the SP500 to trade with via MT4-5 ?
Copy.
If we represent Buy_Key as -1 and Sell_Key as 1, a skip function X can be arranged when an order is opened, through the execution of an if condition.
The logical chain of the skipping function X:
Buy_Key = -1
Sell_Key = 1
0 Opening of a trade.
1 Determine the order type based on the comment.
1.1 If the comment is Buy_Key, buy.
1.2 If the comment is Sell_Key, sell.
2 Opening of a subsequent trade.
1.1 If X is greater than zero, it is possible to open a Buy trade and impossible to open a Sell trade.
1.2 If X is less than zero, a Sell trade may be opened, and a Buy trade cannot be opened.
3 Repeat the cycle.
Again the question is: "How to make X variable dependent on Sell_Key or Buy_Key?
You need to write a part of the code of the trading robot so that it will make a trade once if the trading conditions are met.
For example:
1) If Line_1 is higher than Line_2, a buy trade is executed,
2) The deal is closed at SL or TP,
3) If Line_1 is higher than Line_2, a trade is not executed until conditions change. .
If conditions change, i.e. Line_2 is higher than Line_1, a trade is executed. Then everything is repeated.
1) If Line_2 is higher than Line_1, a buy trade is executed,
2) The trade is closed at SL or TP,
3) If Line_2 is higher than Line_1, a trade is not executed until conditions change. .
And.
1) If Line_1 is higher than Line_2, a buy trade is executed..,
2) The trade is closed at SL or TP,
3) If Line_1 is above Line_2, the trade is not executed until the conditions change. .
etc.