Sorry to ask you Again and Again. How to get the buy/Sell Price value from Modify variable Block. i dont know how to store the variable. Can you share practical Example. Thanks
-
Sorry to ask you Again and Again. How to get the buy/Sell Price value from Modify variable Block. i dont know how to store the variable. Can you share practical Example. Thanks
-
What do you mean by Buy/Sell price value?
-
When I want to store the price wether in the moment of opening a trade or in any other moment I use the formula block, but I guess you can use the modify variables block also. Just select "Market properties"/"Ask, bid, mid" and put it in the variable (in the modify variables block is the space to the right top where it says "select variable (right click)").
-
If we are talking for the Open Price, it is probably better to get that value from the trade itself
Because if something happens and the EA is restarted, variables could be lost. -
Yes, I agree that in that case it is better to take the price from the trade itself but since he said he didn't know how to store the value in the variable it is better to settle that too now that we are on it (for he might need to store other prices later different from the open/close price). I particualarly use variables to store what would be the "break even" price from a group of trades where some may be closed while others remain opened so it's messy, but I experienced what you mentioned, having to reopen MT4 losing the data stored in the variables.
-
May be.. i dont know how to store the value of buy or sell opening price value.. just give me one example how to store the buy or sell opening price value. also what is the use of modify variable. give me one example. thank you so much
-
