- I would like some one to help me make this ea for a candle stick study
- PipMaker v1 - Price action based EA
- Creating an EA that opens trades only upon an indicator placing an arrow on the current bar or the previous bar
Okay I'll break it down for what you got to do to implement something like this,
I'll structure it below.
1. One trade per hour from a specific time interval:
For the time interval, use a enum for trading between intervals. There are many codes that have this feature. For trading only once per hour, you have to count the number of bars per hour and
then limit the activity to only set a position on the start of the hour.
2. Creating a deviation for this you must have the correct count per hour because it would need to reset. Then apply another function to commandeer the price. I'll give you a small example but this
is not the full code, there are missing functions.
To be honest, and I will be very honest here, this doesn't sound like this EA is optimized fully to enable an edge onto the market. Some advice, learn functional coding with C++ and how to integrate it onto the
ontick function using mql code.
void OnTick() { double tot = OrdersTotal(); if(TradingAllowed() == true) if(tot < 1) if(count() < 2 && Close[0] > 30*_Point){ OrderSend(..)} } The count is the number of candles there are in an hour. The other feature is a small deviation of the current price moving above 3 pips.
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use