Coding help - page 588

 
funayot:

Vlad5624,

Thanks for your contribution. My strategy requires opening the first trade as the current candle touches bollinger band (upper or lower band). I just don't want to open another trade on the bar if stop loss is also hit on the bar. Can you please send the sample code?

Butyouget the gistof my problem?Can you help me?

 
Vlad5624:
Butyouget the gistof my problem?Can you help me?

I don't understand you Vlad5624

 
mladen:

funayot

A good stating point can be this thread : https://www.mql5.com/en/forum/173136

Mladen, I have an idea, I'm thinking of using candle time custom indicator. Not sure how to go about it yet.

 
funayot:
Mladen, I have an idea, I'm thinking of using candle time custom indicator. Not sure how to go about it yet.

funayot

Which indicator exactly and what would be the strict set of rules?

 

MladenI sentyou a private message)youwill take up thisidea?

 
mladen:

funayot

Which indicator exactly and what would be the strict set of rules?

candletime2016.mq4

I found this indicator somewhere on the internet. I do not know how to use it yet to solve the problem.

My new idea is: if( fabs(OrderOpenTime - StopLossTriggeredTime) < 60 mins) do not open new trade.

My problem now is how to deduct time data like numbers. I really need to stop my EA from opening another order on the same candle as the previous opened order.

Files:
 
Vlad5624:
MladenI sentyou a private message)youwill take up thisidea?

Any idea from you also will be appreciated.

 
funayot:
Any idea from you also will be appreciated.

Вы умеете писать и переделывать индикаторы?

 
Vlad5624:
Вы умеете писать и переделывать индикаторы?

"You know how to write and customize indicators?"

Yes I do. I usually get help from Mladen once in a while.

 
Vlad5624:
Вы умеете писать и переделывать индикаторы?

без точной объяснения ...... кто понятия не имею ...... что делать ..... с вашими требованиями