Page 161 of 180

Re: Coding Help

Posted: Tue Aug 06, 2024 2:03 am
by md2008
mrtools wrote: Mon Aug 05, 2024 11:24 pm Hello, added the alerts.
Thank you mrtools for sharing your expertise and for making the process so much easier for me. I greatly admire your skills

Re: Coding Help

Posted: Tue Aug 06, 2024 2:40 am
by md2008
mrtools wrote: Mon Aug 05, 2024 11:24 pm Hello, added the alerts.
MrTools, please, I'd like to add an alert to the crossover of the histogram with the MA 7.thank you

Re: Coding Help

Posted: Tue Aug 06, 2024 4:17 am
by mrtools
md2008 wrote: Tue Aug 06, 2024 2:40 am MrTools, please, I'd like to add an alert to the crossover of the histogram with the MA 7.thank you
So you want 3 different alerts?

Re: Coding Help

Posted: Tue Aug 06, 2024 10:34 pm
by md2008
mrtools wrote: Tue Aug 06, 2024 4:17 am So you want 3 different alerts?
I need two: one crossover to the zero line and the second MACD histogram to the MA 7

Re: Coding Help

Posted: Tue Aug 06, 2024 10:52 pm
by mrtools
md2008 wrote: Tue Aug 06, 2024 10:34 pm I need two: one crossover to the zero line and the second MACD histogram to the MA 7
Try.

Re: Coding Help

Posted: Wed Aug 07, 2024 3:57 am
by md2008
mrtools wrote: Tue Aug 06, 2024 10:52 pmTry.
Thank you so much, it's okay. Great work!

Re: Coding Help

Posted: Fri Aug 09, 2024 3:04 am
by pin12
Hi !

This is an EA that opens a sell order when a bearish candle closes and opens a buy order when a bullish candle closes.

The problem I find is that when it opens a new operation it does not close the previous one, but keeps it open.

I would like, please, if possible, to modify the code so that when opening a new buy or sell order, the previous order is closed, regardless of whether there is a profit or loss.

The take profit and stop loss could be eliminated, since in this case it would not be necessary.

Thanks

Re: Coding Help

Posted: Fri Aug 09, 2024 10:34 pm
by mrtools
pin12 wrote: Fri Aug 09, 2024 3:04 am Hi !

This is an EA that opens a sell order when a bearish candle closes and opens a buy order when a bullish candle closes.

The problem I find is that when it opens a new operation it does not close the previous one, but keeps it open.

I would like, please, if possible, to modify the code so that when opening a new buy or sell order, the previous order is closed, regardless of whether there is a profit or loss.

The take profit and stop loss could be eliminated, since in this case it would not be necessary.

Thanks
Maybe this will work for you.

Re: Coding Help

Posted: Sat Aug 10, 2024 3:21 am
by pin12
mrtools wrote: Fri Aug 09, 2024 10:34 pm Maybe this will work for you.
Thank you Mrtools .. :thumbup:

Re: Coding Help

Posted: Sat Aug 17, 2024 1:19 pm
by JGREEN
@mrtools

please add a vertical line and or arrow when histogram cross up and down

thank you in advance