How to add an entry every 5 candles?
-
Good day to all.
This is my first EA. So I managed to get it to do what I want, but ....
I want the EA to add an entry every 5 candles.Also. If there are 3 out of 5 entries in profit, I would like to close all trades.
shared/ZUZo1kTGd -
hope this link will help: https://fxdreema.com/shared/ZUZo1kTGd
-
@Piet-Pompies This is a test for somthing else but maybe it helps you on the way. https://fxdreema.com/shared/BBzBgyGvb

-
@ekanters Thankx for the reply, but does not seem to work

-
Try this, Period() gets the minutes of each candle of the current time frame, then it is multiplied by a chosen number. This will count from 00:00, so maybe you need to start the count at a specific time:

-
Ok, I'm new to this. maybe try and speak in Amateur language. how do I get to the Constants block? do i add this in before the "Sell now " block?
-
This is what i Have so Far https://fxdreema.com/shared/XYHNzn9hb
-
That looks correct, you now need to connect that to your sell block
-
Okay so it seems to work but it only adds a sell after first 5 candles. en need it to add at least 5 entries in 25 min (1 x every 5 minutes). now it only adds 1
-
That will work at the start of a candle if on the 1h chart, it will work every 5 hours, but conditions after this can stop things from working.
-
I got it to work, But now it does not meet my conditions,
Im working on a 1 minute time frme. it enter a sell right off the bat, and when it close in profits , it enter another sell. it keeps entering sells after previous order close in profits.
-
it was suppose to add more entries to the top movement.
Below you can see it enter right after positions are closed. should not do that.
-
This is how i have it
https://fxdreema.com/shared/d3xVw3Tze -
This is how you currently have this setup, if candle 0 is below the MA (which is the current price), and if the current price crosses above the envelope then place a trade (at maximum this only happens once a candle. Then separate to this, every X minutes place a trade. I think you want to combine blocks so EA is only doing what you want?
-
https://fxdreema.com/shared/mdj7OHqJb
Here you can see it opens 2 trades at once, then 5 minutes after, and then nothing. it should have entered another sell 5 minutes after the 2nd entry.

-
here should have been 5 entries in total.

-
I have tested using this to draw a candle every 5 candles, and works as expected: https://fxdreema.com/shared/75Ma1nJ7b
-
it does open every 5 minutes now, but when a small spike happens, it stops. i want it to continue until price drops into profit
-
You'll have to add a shared link, and say what's happening.