Forum

AccountProfit( ) return as pips?

I am using the following code to display the profit of my trades right on the chart: double accp = AccountProfit(); ObjectCreate("ap", OBJ_LABEL , 0, 0, 0); ObjectSetText("ap","Profit: $",14, "Arial Bold", White); ObjectSet("ap", OBJPROP_CORNER, 0); ObjectSet("ap", OBJPROP_XDISTANCE, 900);

.mql that displays swap rate on chart...

When you open the Market Watch pane, you can right click on a pair, select properties , and you can view the current swap rate for both long and short trades within that pair. I would love it if someone here could tap into that data and create a .mql that you could attach to any chart, and in the