Orders counting system!
Karish:
Please edit your post, and use the SRC button to publish your code.Hii there, please help me with this i got flooded many times when it happen, i need some kind of filter that will help me to do each function just 1 time only... without any FLAGs please just by Time is this possable..?, thanks/
<link removed by moderator>
updated, sorry.

You are missing trading opportunities:
- Free trading apps
- Free Forex VPS for 24 hours
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Hii people, im trying to code a system that ill can insert a BUY & SELL rules and the rest will be managed by the "system",
i would love to get some help with this, so please just aboard if you interested :).
//IIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIII
# 1:
- We set the rules of the strategy as "Strategy_BuyRule" / "Strategy_SellRule",
then we set the execution price as "OrderBuyAtPrice" / "OrderSellAtPrice",
then we can set the amount of that same order as "OrderAmount".
# 2:
- We set the rules of the closure as "OrderBuyClosingRule" / "OrderSellClosingRule", then if "OrderCloseOnSettedRule" is true it will close by the setted closure rule.
- If we set "OrderCloseOnReverse" to true it will close and reverse to other direction.
- If we set "OrderCloseOnReversedCandle" to true it will close at the reversed candle.
# 3 (The way it all should work):
- So.., we set the rules for the execution and for the closure,
now.., we got to keep in mind that if we will want to use Stop/Limit orders it will will decrees from "OrdersBuyStop" / "OrdersBuyLimit" and add to "OrdersBuy", cause when the pending order becomes a market order it turns to OP_BUY..
and lets say we will use StopLoss / TakeProfit, so we will need to make sure that if the StopLoss / TakeProfit hit we will decrees from "OrdersBuy" / "OrdersSell", cause the order is closed by StopLoss / TakeProfit..
- This is where i left off cause of my low MQL skills..., some things are working but some of them don't..,
i hope someone wanting something like this cause this will really ease things.., so lets gather together and make this thing! :)
Thank you for your time and effort,
*More ideas will be great!, im trying to make the ultimate EA Template that will really ease things up when you wanna automate your stuff or just check something on history by automation..
//IIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIII