How to close trade as candle close on current timeframe
-
after condition is set, i wish to close trade
on same candle( @ candle close)
on which buy/sell trade took place. -
@kunalyadav1809 Share your project so it will be easy to answer
-
-
@kunalyadav1809 This is the site's free example. Could you please provide your project?
-
-
plz consider that example as my condition.....mine is also based on crossing......i just want that after crossing take buy?sell at close of 1st candle after crossing and close trade after close of second candle
-
-
@kunalyadav1809 Then you will need a variable counting how many candles passed since the trade was open. Once the correct number is hit then trade can be closed.
-
where and how ill do that sir
-
@kunalyadav1809 Well, that is not a tru8ivial thing to do and it depends on the current structure you have. Is the link you provided the whole EA or just part of it?
-
-if position
-once per bar
-modify variables- is the variable to change. the same variable is selected to modify it, but in the adjust block put +1
-check value of variable, if 2,
-close trades
-modify variables (reset variable to 0) - is the variable to change. but instead of selecting the same variable in the next block, just use Numeric 0
something like that
- is the variable to change. the same variable is selected to modify it, but in the adjust block put +1
-
Bonjour comment créé un stratégie
-
@patrice said in How to close trade as candle close on current timeframe:
Bonjour comment créé un stratégie
Désolé mon ami, je pense que personne ici ne parle français. Tout sera Google Translate.
Sorry friend, I dont think think anyone here speaks French. Everything will be Google Translate.@kunalyadav1809 said in How to close trade as candle close on current timeframe:
c'est son lien de projet si c'est ce que vous demandez.
this is his project link if thats what you are asking for.