Watch how to download trading robots for free
Find us on Facebook!
Join our fan page
Join our fan page
You liked the script? Try it in the MetaTrader 5 terminal
- Views:
- 23406
- Rating:
- Published:
- 2014.07.10 09:56
- Updated:
- 2016.11.22 07:32
-
Need a robot or indicator based on this code? Order it on Freelance Go to Freelance
ProfitTrailing is to realize virtual profit trailing.
Parameters:
- minlots: the min lots unit for calculation,usually is 0.01;
- minlotsprofittrailingsl: profit trailing stoploss per minlots, default is 2.2, for example,when the order lots is 0.01,current profit is 3, the orders virtual profit stoploss is 0.8(3 - 2.2), when the lots is 0.02, current profit is 10, the orders virtual profit stoploss is 5.6(10-(0.02/0.01)*2.2);
- minlotsprofittp: profit take per minlots, when profit is great than minlotsprofittp,close the order immediately;
- slippage: slippage when close order.
This EA is suitable for any charts,it check all orders profit every 2 second with OnTimer(),and record the data in arrays.
Advantage:
- Maximize profit with low risk,just like trailing stop;
- Hide the trailing stop/stop loss/take profit positions,for some brokers may increase spread(Ask - Bid) factitiously.
Note:
This EA is created days ago and still under real account testing, any bugs or ideas,please kindly tell me.

This indicator based on a 5 period simple moving average detects trends: if there is an uptrend then shows green bars, if there is a downtrend then shows red bars, if there is a weak trend then shows yellow bars.

3 EMA Crossover Indicator.