Watch how to download trading robots for free
Find us on Twitter!
Join our fan page
Interesting script?
So post a link to it -
let others appraise it
You liked the script? Try it in the MetaTrader 5 terminal
Experts

Get Nth Active Trade from the end in MT5 - expert for MetaTrader 5

Views:
735
Rating:
(2)
Published:
2024.05.05 09:37
Need a robot or indicator based on this code? Order it on Freelance Go to Freelance

This particular expert advisor contains a very useful code which is often required by the developers. Most of the time , we need the last active trade. But in this EA you can search a trade with any index.

By active trade ,I mean market orders not pending orders

if you pass 0 then it will fetch the most recent active trade

If you pass 1 then it will fetch the trade before that and so on.

We can filter  the trades based on symbol and magic number.


Geometric Moving Average Geometric Moving Average

MQL5 version of geometric moving average.

Custom Bollinger Bands Custom Bollinger Bands

Standard Bollinger Bands indicator with averaging features added

Get Nth Closed Trade from the end in MT5 Get Nth Closed Trade from the end in MT5

This EA will scan all the closed trades and then print the nth trade from the end

Count consecutive no. of bull or bear bars Count consecutive no. of bull or bear bars

Sample code to count consecutive no. of bull or bear bars.