Mida
Mida copied to clipboard
Add a function / method that helps calculate take profit and stop loss price points on all symbols.
Stop Loss and Take Profit calculation for all symbols.
Have different functions to calculate stop loss and take profit that takes in different arguments.
Stop Loss Function example:
function getStoplossPricePoint(symbol,amountToRisk,lotSize) => {stop_loss_number_of_pips,stop_loss_price_point}
function getStoplossPricePoint(symbol,numberOfPipsToRisk,amountToRisk)=>{lot_size_to_use,stop_loss_price_point}
function getStoplossPricePoint(symbol,numberOfPipsToRisk,lotSize)=>{amountToRisk,stop_loss_price_point}
Take PROFIT Function example:
function getTakeProfitPricePoint(symbol,amountToTakeAsProfit,lotSize) => {take_profit_number_of_pips,take_profit_price_point}
function getTakeProfitPricePoint(symbol,take_profit_number_of_pips)=>{take_profit_price_point,amount_to_take_as_profit}
function getTakeProfitPricePoint(symbol,amountToTakeAsProfit,take_profit_number_of_pips)=>{take_profit_price_point,amount_to_take_as_profit,lot_size_to_use}