Forum

Code for Risk Management

Hi, I'm looking for a code to calculate the lot size based on stop loss , but the stop loss is not fixed at a specific value. For example, stoploss will be placed at a MA value. Thanks for spending your time. Best regards

Code for adding MA to RSI

Hi everyone, I was wondering how to add Moving Average IN the RSI indicator. Thanks for spending your time

Turning EA into a Martingale EA

Hi, I have created this EA but unfortunately it can only place order once at a time. How can I change it so that it can open multiple orders or turn it into a martingale EA? Thanks. int start() { double MyPoint= Point ; if ( Digits == 3 || Digits == 5 ) MyPoint= Point * 10 ; double

Need help with OrderClose()

Hi guys, Currently I'm developing an EA to close trades when the ADX Main line cross down 40. But the EA didn't close the trades. Can you guys give me a hand. Thanks. int OrderClose() { int all_trade = OrdersTotal (); int total_orders = 0 ; for ( int order = 0 ; order < OrdersTotal ();