[WARNING CLOSED!] Any newbie question, so as not to clutter up the forum. Professionals, don't go by. Can't go anywhere without you. - page 765

You are missing trading opportunities:
- Free trading apps
- Free Forex VPS for 24 hours
- 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
i need prices for pending orders from stops and i used to use pending orders like this
i need a stop and a yen price and i need to take the spreads into account
i need prices for pending orders from stops and i used to use pending orders like this
how do i solve this problem, i should be able to take yen at stops and ik profits and at the same time i should also take into account spreads
Andrei, here we go again, too little code, you have an error in the function OrderSend, while we cannot see it or its parameters in this code section. Do you want to place pending orders based on stop-losses and take-profits of already existing market orders?
Andrei, again, too little code, you have an error in the function OrderSend, and we don't see it or its parameters in this part of the code. Do you want to place pending orders based on the data of stop-losses and take-profits of the already existing market orders?
Yes, that's right, put pending orders based on the data of stop-losses and take-profits of existing market orders
the whole code is too big, it is an example of how it worked for me and what I tried to do but it is not right, what would be right for me?
i have a rules based example it opens but only one order, i.e. sell
i.e. for all 4 pending orders i.e. opening price at buy loss and sell loss as well as buy stop and sell stop are the same,
I want a buy limit to open at once at close, e.g. buy on stop,
GBPJPY,H1: SELL order opened : 137.16
GBPJPY,H1: open #3897394 sell limit 0.30 GBPJPY at 137.16 sl: 138.36 tp: 135.96 ok
GBPJPY,H1: SELL order opened : 134.76
GBPJPY,H1: open #3897393 sell stop 0.10 GBPJPY at 134.76 sl: 135.96 tp: 133.56 ok
GBPJPY,H1: BUY order opened : 134.76
GBPJPY,H1: open #3897392 buy limit 0.30 GBPJPY at 134.76 sl: 133.56 tp: 135.96 ok
GBPJPY,H1: BUY order opened : 137.16
GBPJPY,H1: open #3897391 buy stop 0.10 GBPJPY at 137.16 sl: 135.96 tp: 138.36 ok
GBPJPY,H1: SELL order opened : 135.96
GBPJPY,H1: open #3897390 sell 0.10 GBPJPY at 135.96 sl: 137.16 tp: 134.76 ok
GBPJPY,H1: BUY order opened : 136.04
GBPJPY,H1: open #3897389 buy 0.10 GBPJPY at 136.04 sl: 134.84 tp: 137.24 ok
GBPJPY,H1: initialized
GBPJPY,H1 inputs: StopLoss=120; TakeProfit=120; Lot=0.1; Magic=777; Slippage=5;
GBPJPY,H1: loaded successfully
Help me figure it out.
On the chart that can be opened in the tester after testing is completed, the indicators on which the EA is based are not always drawn. Can this be fixed and if so, how? Answer me, pleaseMaybe there is an answer to my question?
Perhaps there is an answer to my question?
It must be noted that only those indicators that are directly called from the expert under test can be shown in the testing chart.
It should be noted that only those indicators that are directly called from the Expert Advisor under test can be shown in the testing chart.
Thank you, Igor! I had to learn the basics blindly.
so does anyone know how to fix the above code to set the value of variables like this
PRAskL=StopLoss of order Buy + Spread
PRAskS=TakeProfit of order Buy + Spread
PRBidL=StopLoss Sell-Spread orders
PRBidS=TakeProfit Sell-Spread orders
so does anyone know how to fix the above code to set the values of variables like this
PRAskL=StopLoss orders Buy + Spread
PRAskS=TakeProfit orders Buy + Spread
PRBidL=StopLoss orders Sell-Spread
PRBidS=TakeProfit orders Sell-Spread
If you have errors related to wrong stops, then do a check on the size of stop levels; use them to check pending orders as well - you can't put less than that...
For example:
double Level_stop=MarketInfo(Symbol(),MODE_STOPLEVEL ); //Minimum stop setting distance
If you have errors related to wrong stops, then do a check on the size of stop levels; use them to check pending orders as well - no less is allowed...
For example:
double Level_stop=MarketInfo(Symbol(),MODE_STOPLEVEL ); //minimal stop setting distance
the last one opens without errors, but it only opens with Sell data. it's a clipping from the log and that's not the correct price distribution I described.
Here they are.
PRAskL=StopLoss Buy + Spread orders
PRAskS=TakeProfit of Buy + Spread orders
PRBidL=StopLoss Sell-Spread orders
PRBidS=TakeProfit Sell-Spread orders
this is how it looks like now
PRAskL=StopLoss Sell order
PRAskS=TakeProfit Sell orders
PRBidL=StopLoss Sell order
PRBidS=TakeProfit Sell order