the main reason i say it should help with profit & loss would because you can check each order open and close price, lot value as well as commission and swap and add up the totals for all buys and sells
jtubbs13791: Thanks for the the help. it works, but it only pulls the info from the last open trade. Is there away to get all the open trades? Plus I am confused on how to get the closed profit amount. I know you change MODE_TRADES to MODE_HISTORY, but I am not getting any info. As you can tell I am fairly new to the coding scene.
okay you want to see all buy/sell profit of open orders?
set terminal to 'All History'
call function
reference global variables
Thanks for the the help. it works, but it only pulls the info from the last open trade. Is there away to get all the open trades? Plus I am confused on how to get the closed profit amount. I know you change MODE_TRADES to MODE_HISTORY, but I am not getting any info. As you can tell I am fairly new to the coding scene.
heres what i do to find my pips for the day
i m finding problem in closing a trade with profit...can someone plz throw a code on it
like the buy trade or sell trade should close in profit excluding broker spread comission etc..bt should end in profit..