.

Coding Help

#1
Coding Help: Post your coding & programming questions and ask for assistance here

Trading Indicator Coding Help and Programming topic for traders.png

Decided to keep this subject as a section, not as a single thread.

I think that this way we can have cleaner overview and state of coding issues and help (which will, eventually, help more than one single thread will all the issues - harder to find, at the lest then seeing issue short description in the thread name ...)
___________________________

So I would like to suggest it as a kind of a standard :
the thread name should have a short, but descriptive name that describes well enough the codding issue


Re: Coding Help

#2
I hope this is a good start for everyone.
and
I am on the first request

Dear @mladen,
The attached ea has 8 warning(s) on latest build mt4.Are these warnings important? If important things can be corrected?
Thank you

Re: Coding Help

#3
oguz wrote:I hope this is a good start for everyone.
and
I am on the first request

Dear @mladen,
The attached ea has 8 warning(s) on latest build mt4.Are these warnings important? If important things can be corrected?
Thank you.
Only the warning at line 686 is important
Try changing it to :

Code: Select all

      if (DayWeek == 1 && (TimeHour(WaitTime - 3600 * ManualGMToffset) < StartWorkTimeHour || ((TimeHour(WaitTime - 3600 * ManualGMToffset) == StartWorkTimeHour &&
         TimeMinute(WaitTime) < StartSessionMinute)))) return;
and let us know if test run OK then

Re: Coding Help

#4
mladen wrote:
Only the warning at line 686 is important
Try changing it to :

Code: Select all

 if (DayWeek == 1 && (TimeHour(WaitTime - 3600 * ManualGMToffset) < StartWorkTimeHour || ((TimeHour(WaitTime - 3600 * ManualGMToffset) == StartWorkTimeHour && TimeMinute(WaitTime) < StartSessionMinute)))) return; 
and let us know if test run OK then
Thank you for your help.
It works fine on backtest

I will test it in the demo as soon as possible. I hope it works well in the live market.

Re: Coding Help

#5
Good afternoon everyone:

Hi mladen

I have tried to incorporate an indicator

TimeFrame
Price
MaMethod

And I have a lot of mistakes, you can help me correct it

Thank you very much in advance.

Hermo
BSV_3_Mtf_Alert.mq4
(30.22 KiB) Downloaded 432 times


Re: Coding Help

#6
Hermo wrote:Good afternoon everyone:

Hi mladen

I have tried to incorporate an indicator

TimeFrame
Price
MaMethod

And I have a lot of mistakes, you can help me correct it

Thank you very much in advance.

Hermo
Try it out now
BSV_3_Mtf_Alert.mq4
(30.16 KiB) Downloaded 380 times

Re: Coding Help

#7
mladen wrote:
Try it out now
Good afternoon

Hi mladen

The indicator does not draw anything, with no mean

A greeting

Hermo
1111111.JPG

Re: Coding Help

#8
Hermo wrote:
Good afternoon

Hi mladen

The indicator does not draw anything, with no mean

A greeting

Hermo
Can you explain what exactly are you trying to do?
PS: I would like to remind that "coding help ..." is a section now. Please guys read the first post of this thread, I really think that the way described there can help everybody

Re: Coding Help

#9
Hi, Everybody!

Dear Mladen,
have you ever coded an indicator / expert
preparing charts with TFs smaller than 1M (e.g. 10s)?
Of course, they would probably be built online using ticks, or so...
Such charts / TFs could be sometimes quite useful,
and are available on some trading platforms.

Re: Coding Help

#10
Do you think tick data help you,it is not about creating TFs but that works close to volume wise,but moderator can better explain you.
regards
1.png
Indicator is just a tool.

Use it only if it can benefit you. Leave it if you don't know how to use it optimally.



Who is online

Users browsing this forum: CommonCrawl [Bot] and 1 guest