[ARCHIVE] Any rookie question, so as not to clutter up the forum. Professionals, don't pass by. Nowhere without you - 3. - page 126
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
I.e., the difference is only for open orders, because the realised profit is the difference between the two prices including swaps and commissions?
Profit on an order = number of pips * pip price of the instrument at the given volume.
Do I understand correctly that OrderProfit( ) can be negative?
Yes, it can. Then it turns into a loss on the order if the order is not closed, but the loss is floating.
Please look at the code on the picture to see if anything is wrong.
Read ithere.
invalid price 0.00014423 for OrderSend function
what is this ?????????
Incorrect price for OrderSend() - opening an order.
1. Calculate the price correctly.
2. When placing orders - do not forget to use
3. In addition, check these parameters to make sure they are necessary and sufficient when (before) placing any type of order.
Profit on an order = number of pips * pip price of the instrument at the given volume.
Yes, I was totally wrong there, sorry, thank you!
Yeah, I totally missed it, sorry, thanks!
It's alright! :-))) You share a computer with your brother... :-))
Please do get in touch with questions - they will help.
Please.
Wrong price for the OrderSend() function - opening of an order.
1. Calculate the price correctly.
2. When placing orders - do not forget to use
3. Also check these parameters to make sure they are necessary and sufficient when (before) placing a certain type of order.
OK
I'll give it a try!!!
thanks a lot!
Read ithere.
Thank you! But I read it in the Metatrader_editor's help, although it's not as detailed. I also took double OrderProfit() from it. I began to test it - it's zero! And I selected it this way. Well, I'll think it over and if it fails, I'll ask you.
I've never understood why People are too lazy to think... :((
Because you see, no matter how many orders are open and what orders these are, when the price changes by one pip, the total profit on orders changes by a discrete step (except for floating spread, then this step is floating) !!!!!!!!!!!!!!!!. When the step*pip is > your current loss, then your profit will come to you !!!!!!!!!!!!