MT4 EA Template with all basic features - MetaTrader 4 Expert - MetaTrader 4 Resources
As you can see in the default example, the buy and sell conditions are given as "bool" value parameters in the direction function.
integer signal condition = 3 ; DashKeys[openCloseConditionIdx+ 1 - 1 ]= "BB status" ; DashValues[openCloseConditionIdx+ 1 - 1 ]=Direction (ok(bbGreen) && bbGreen!=- 1 ,ok(bbRed) && bbRed!=- 1 , can be bought, can be sold, "at" +TimeToStr(time[masterCandleIdx]), "at" +time[masterCandleIdx]);
The can buy and can sell variables will be set to true or false based on these conditions.
This will trigger the symbol to pass the signal further for trading purposes.
If you need more rows on the dashboard, make sure to increase these 2 array sizes.
Attachment download
📎 template_ea.mq4 (199.49 KB)
Source: MQL5 #33244
💡 Featured Recommendations
✍️ Latest by the author
- •
- •
- •
- •
- •
- •
📌 Popular topics
- •
- •
- •
- •
- •
- •
- •
- •
🔗 You May Be Interested In
- •
- •
- •
- •
- •
- •