Page 99 of 180
Re: Coding help ...
Posted: Sat Jun 15, 2019 5:31 am
by traderduke
MrTools
I can't seem to clear this warning "Expression not Boolean" on line #354 which is "return(0);" I tried putting true in their but that screwed everything up. I went up on mql5 website but nothing I saw addressed this situation. See below;
Can you please give it a look and suggest the correct answer as you can see I have several of them.
Thank you
Ray
6-14-2019 3-19-58 PM-boolean problem.png
Re: Coding Help
Posted: Sun Jun 16, 2019 2:09 am
by traderduke
mrtools
I think I got the answer. Put the bool name in the return. Such as;
I won't know till Monday.
PS: It didn't trade, so I had to change it to "return (false);" It now trades properly and the same as return (0); use to trade but without the "Expression not Boolean" warning.
Re: Coding Help
Posted: Sun Jun 16, 2019 8:38 pm
by samgaz
Hello Guys,
I would like to know how to limit EA trades.
if i have installed the EA in three pairs or more, and two pairs have EA trades open, i would like to disable the other pairs trades until all the trades have been closed.
Kind regards,
Samgaz.
Re: Coding Help
Posted: Sun Jun 23, 2019 9:31 pm
by vvFish
Dear coders, you can ask you to fix the script that recently stopped working.
Thanks in advance.
Re: Coding Help
Posted: Mon Jun 24, 2019 1:58 am
by mrtools
vvFish wrote: Sun Jun 23, 2019 9:31 pm
Dear coders, you can ask you to fix the script that recently stopped working.
Thanks in advance.
Still has one benign error but it's working.
Re: Coding Help
Posted: Mon Jun 24, 2019 3:34 am
by vvFish
mrtools wrote: Mon Jun 24, 2019 1:58 am
Still has one benign error but it's working.
Thank you for your work.
:!:
Re: Coding Help
Posted: Mon Jun 24, 2019 4:37 am
by Cladi39
mrtools im trying to do an arrow based in this indicator useing iCustom without success, conditions in the picture, whats wrrong in my code? or maybe you can add arrows with that condition in original indicator, thanks soo much.
Re: Coding Help
Posted: Thu Jun 27, 2019 4:09 pm
by Komoles
Dear Coder,
I recently facing some problem for calculation am Money Management Logic :
1st Entry: 0.01* 70=$7 Loss
2nd Lot Size : ($7(1st Loss)+$5(constant Addition))/30 pips=Lots
3rd Lot Size: (1st Loss+2nd Loss+$10(ConstantAddition))/30 pips=Lots
Continue until Profit reached ...
Code: Select all
double Loss=(LastOrderInfo("Profit")+10)/130;
NewLot=LastOrderInfo("Lots")+Loss;
I am trying this but not working

(
Re: Coding Help
Posted: Mon Jul 01, 2019 10:12 pm
by thiru
Dear Mr Tools,
Can you please make this classic indicator of yours into MTF?
Thanks
Thiru
//
//
Re: Coding Help
Posted: Mon Jul 01, 2019 10:29 pm
by pacois
Cladi39 wrote: Mon Jun 24, 2019 4:37 am
mrtools im trying to do an arrow based in this indicator useing iCustom without success, conditions in the picture, whats wrrong in my code? or maybe you can add arrows with that condition in original indicator, thanks soo much.
Hi, with the icoustom function in this way, will it take the default settings of the indicator, the conditions of the arrows are based on default settings of the jurik volty bands - separate indicator?