When you post code please use the CODE button (Alt-S)!
Sergey Golubev:
Sorry. New to this forum
AlwaysTilt:
EA. Need help with easy coding.
What I want … I hope someone can help me with this.
- When you post code please use the CODE button (Alt-S)!
(For large amounts of code, attach it.)
Please edit
your (original) post.
General rules and best pratices of the Forum. - General - MQL5 programming forum
Messages Editor - If it's easy, why haven't you coded it.
- Help you with what?
You haven't stated a problem, you stated a want.
You have only four choices:- Search for it,
-
Beg at
- Coding help - MQL4 and MetaTrader 4 - MQL4 programming forum
- Requests & Ideas (MQL5 only!) - Trade FX - Expert Advisors and Automated Trading - MQL5 programming forum
- Free coding for your trading system.. - Easy Trading Strategy - General - MQL5 programming forum
- I will code & automate your strategy for free - Options Trading Strategies - General - MQL5 programming forum
- Make It No Repaint Please! - MetaTrader 5 - MQL4 and MetaTrader 4 - MQL4 programming forum
- learn to code it. If you don't learn MQL4/5, there is no common language for us to communicate. If we tell you what you need, you can't code it. If we give you the code, you don't know how to integrate it into yours.
- or pay (Freelance) someone to code it.
No free help
urgent help.
It looks easy to code but at the moment I can just hand you this snippet:
static datetime m30bar_dt=0; datetime dt=iTime(_Symbol,PERIOD_M30,0); if(dt!=m30bar_dt) { // new m30 bar m30bar_dt=dt; int shift=1; double aweval=iAO(_Symbol,PERIOD_M30,shift); if(aweval>= 0.002) LaunchSellLimits(); if(aweval<=-0.002) LaunchBuyLimits(); }
Note it's a MQL4 topic so you're in the wrong part of the forum.
Check if it works for you and show some results.
You are missing trading opportunities:
- Free trading apps
- 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
I have an EA I´ve been playing around with good results (demo) . I will share it here below. It is a simple EA that simply place buy/sell-orders every 30 min that last for 60 min. Buy low sell high basically with a twist of scaling in..
What I want is to add a filter to it. So it decides if its suppose to put buy or sell limits in.
For example the Awesome Indicator.
This is how I am thinking:
Every 30 min it checks the Awesome indicator.
If it is + 0.002 and above it launches the sell limits
If it is - 0.002 and below it launches the buy limits.
If it is in between it doesnt launch anything
The EA is gonna run on Eur/usd on a 15 min chart btw.. So that 0.002 is 20 pips..
(The Awesome Indicator is basically two moving average.. 5 and 35.. So when the 5 MA is more than 20 pips above the 35 it trigges sell-limits.. and vice versa..)
Here is the Script everything is based on.. I also uppload it with an attach file .
Sorry for my bad english and I hope someone can help me with this.