Forum

How to calculate risk percentage

I wish to calculate the risk percentage of a trade given the open price, stop loss, balance and the lot size. I am able to get the pip difference but cant quite get the value of the pips so I can get its percentage of the balance. Here is the example I am trying to work from: Values: Pair: GBPUSD

Remove unicode from string

I have an alert that sometimes adds a bell icon to the string. I want to remove the icon before I process the string. The string displays in MT4 as "?? This is the alert" When I view the raw text in a different editor it reads as "\ud83d\udd14 This is the alert info" I have tried int replaceBell =

function to return orderType

I have a button when clicked will create an immediate or pending buy order. I have a function that determines whether the order should be a buy if the current price is within +- 5 pips of the entering price that is inputed by the user. If the entry price is greater than +- 5 pips of the current

Cannot select symbol in Strategy Tester

I am not able to select any symbol or time frame in strategy test. I dont get any error