.

Coding help ...

Moderators: mntiwana, mrtools

Coding help ...

#1
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


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

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.



#3
[QUOTE=oguz]I hope this is a good start for everyone.
and
I am on the first request [smile]

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.



[/QUOTE]

Only the warning at line 686 is important
Try changing it to :
[CODE]
      if (DayWeek == 1 && (TimeHour(WaitTime - 3600 * ManualGMToffset) < StartWorkTimeHour || ((TimeHour(WaitTime - 3600 * ManualGMToffset) == StartWorkTimeHour &&
         TimeMinute(WaitTime) < StartSessionMinute)))) return;
[/CODE]
and let us know if test run OK then [smile]

#4
[QUOTE=mladen]

Only the warning at line 686 is important
Try changing it to :
[CODE] if (DayWeek == 1 && (TimeHour(WaitTime - 3600 * ManualGMToffset) < StartWorkTimeHour || ((TimeHour(WaitTime - 3600 * ManualGMToffset) == StartWorkTimeHour && TimeMinute(WaitTime) < StartSessionMinute)))) return; [/CODE]
and let us know if test run OK then [smile][/QUOTE]

Thank you for your help.
It works fine on backtest [smile]

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

#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
Attachments
BSV_3_Mtf_Alert.mq4
(30.22 KiB) Downloaded 337 times


#6
[QUOTE=Hermo]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
[/QUOTE]

Try it out now
Attachments
BSV_3_Mtf_Alert.mq4
(30.16 KiB) Downloaded 316 times

#7
[QUOTE=mladen]

Try it out now[/QUOTE]

Good afternoon

Hi mladen

The indicator does not draw anything, with no mean

1111111.JPG 


A greeting

Hermo
Attachments
1111111.JPG
1111111.JPG (97.62 KiB) Viewed 4000 times

#8
[QUOTE=Hermo]

Good afternoon

Hi mladen

The indicator does not draw anything, with no mean

1111111.JPG 


A greeting

Hermo
[/QUOTE]

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

#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.

#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 
Attachments
1.png
1.png (128.62 KiB) Viewed 3975 times
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