| stevehopwoodforex.com https://www.stevehopwoodforex.com/phpBB3/ Print view |
|
| Function to return OrderProfit() https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?t=4368 |
Page 1 of 1 |
| Author: | ROOI [ Sat Aug 01, 2015 8:23 am ] |
| Post subject: | Function to return OrderProfit() |
Hi Thank you for the time you take to read this To start I am complete noob although I have started the learning process and have a rough understanding of most of the concepts.I am able use pre-written function with slight success and have founds a lot of very good functions here so I thank all involved for that. My current problem is I am trying to get the value of the Profit of an open buy order. Currently my code looks like this and I get one error and I was wondering if someone could give me push into the right direction.Thank you very much Rooi Code: Select all |
|
| Author: | milanese [ Sat Aug 01, 2015 8:33 am ] |
| Post subject: | Function to return OrderProfit() |
Try this: Code: Select all Tommaso |
|
| Author: | ROOI [ Sat Aug 01, 2015 8:36 am ] |
| Post subject: | Function to return OrderProfit() |
Thank you very very much.I will try it Rooi |
|
| Author: | ROOI [ Sat Aug 01, 2015 9:20 am ] |
| Post subject: | Function to return OrderProfit() |
Hi Tommaso Thank you for your great help with the function I wanted to see the result of the function you have genoursly helped me with so I wanted to use the Alert() and check the value of the profit on each tick but it doesn't compile and gives me the error : wrong parameters count Am I trying to do something impossible or am I missing something small. If it is something big please say so and I will go try and study some more about this in google Once again I am very thankful for any pointers or help with this Rooi Code: Select all |
|
| Author: | milanese [ Sat Aug 01, 2015 10:48 am ] |
| Post subject: | Function to return OrderProfit() |
you have to call the function in this way: GetProfitBUY(Symbol(),MagicNumber);Cheers Tommaso |
|
| Author: | ROOI [ Sat Aug 01, 2015 11:15 am ] |
| Post subject: | Function to return OrderProfit() |
Was a bit tough in the in the start but found a work around.I knew there needed to be 2 inputs but could not figure it out. Thank you very much.Now I can implement your nice code Enjoy your weekend Rooi |
|
| All times are UTC | Page 1 of 1 |
|
Powered by phpBB® Forum Software © phpBB Limited |
|