stevehopwoodforex.com
https://www.stevehopwoodforex.com/phpBB3/
Print view

Need advise on this code
https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?t=3740
Page 2 of 5
Author:  fxcba [ Mon Jul 21, 2014 9:29 pm ]
Post subject:  Need advise on this code

Hello
It's me again
I found this indi on FF
Color_RSI_v1.01_maxsig.mq4
and changed into this
WPR_MA_SIGNAL-V2.mq4
My problem now is the conditions for signaling up/down are a little bit different. I thinK I'm really close and may be with someone help we can finish it
Author:  SteveHopwood [ Mon Jul 21, 2014 9:46 pm ]
Post subject:  Need advise on this code

fxcba » Sat Jul 19, 2014 8:09 pm wrote:Got it
that shows I know nothing :arrrg:
Just stopping by briefly to offer words of encouragement and support. Keep going and learn this stuff - you will not be sorry you made the effort. :clap:

All of us knew nothing when we started.

:xm:
Author:  fxcba [ Mon Jul 21, 2014 10:47 pm ]
Post subject:  Need advise on this code

Thank you for your kind words Steve
cheers :smile:
Author:  fxcba [ Tue Jul 22, 2014 4:47 pm ]
Post subject:  Need advise on this code

Well
One more step, it's getting closer, but still I'm missing something, can someone check the "DrawArrow" sintax?
Author:  milanese [ Tue Jul 22, 2014 5:08 pm ]
Post subject:  Need advise on this code

fxcba » Tue Jul 22, 2014 4:47 pm wrote:Well
One more step, it's getting closer, but still I'm missing something, can someone check the "DrawArrow" sintax?
looks good.
line 316 I do not understand why you use Point/2 I would use Point...

Cheers :)

Tommaso
Author:  fxcba [ Tue Jul 22, 2014 5:40 pm ]
Post subject:  Need advise on this code

milanese » Tue Jul 22, 2014 2:08 pm wrote:
fxcba » Tue Jul 22, 2014 4:47 pm wrote:Well
One more step, it's getting closer, but still I'm missing something, can someone check the "DrawArrow" sintax?
looks good.
line 316 I do not understand why you use Point/2 I would use Point...

Cheers :)

Tommaso
Hi Tomaso thank you for your time
That is part of original writing I didn't mess there.
My problem is arrows are not following the logic :?

Edit
Ok, I left only Point and something changed, looks better now :clap: ,
Author:  milanese [ Tue Jul 22, 2014 6:10 pm ]
Post subject:  Need advise on this code

fxcba » Tue Jul 22, 2014 5:40 pm wrote:
Hi Tomaso thank you for your time
That is part of original writing I didn't mess there.
My problem is arrows are not following the logic :?

Edit
Ok, I left only Point and something changed, looks better now :clap: ,
ok :good: I thought so too..

Cheers :)

Tommaso
Author:  fxcba [ Tue Jul 22, 2014 9:57 pm ]
Post subject:  Need advise on this code

Thank you my friend.
I'll forward test it on my live account and see how it does
:)
Cheers
Author:  fxcba [ Sat Jul 26, 2014 2:50 pm ]
Post subject:  Need advise on this code

Hello ppl

To learn how to do, I'm using a MA cross EA wich doesn't compile on 6xx version, I solved almost all errors but I'm stuck on this part:

Code: Select all

 int subGenerateMagicNumber int MagicNumber, string symbol, int timeFrame
{
   int isymbol =
   if (symbol == "EURUSD")       isymbol = 1;
   else if (symbol == "GBPUSD")  isymbol = 2;
   else if (symbol == "USDJPY")  isymbol = 3;
   else if (symbol == "USDCHF")  isymbol = 4;
   else if (symbol == "AUDUSD")  isymbol = 5;
   else if (symbol == "USDCAD")  isymbol = 6;
   else if (symbol == "EURGBP")  isymbol = 7;
   else if (symbol == "EURJPY")  isymbol = 8;
   else if (symbol == "EURCHF")  isymbol = 9;
   else if (symbol == "EURAUD")  isymbol = 10;
   else if (symbol == "EURCAD")  isymbol = 11;
   else if (symbol == "GBPUSD")  isymbol = 12;
   else if (symbol == "GBPJPY")  isymbol = 13;
   else if (symbol == "GBPCHF")  isymbol = 14;
   else if (symbol == "GBPAUD")  isymbol = 15;
   else if (symbol == "GBPCAD")  isymbol = 16;
   else                          isymbol = 17;
   if(isymbol<10) MagicNumber = MagicNumber * 10;
   return (StrToInteger(StringConcatenate(MagicNumber, isymbol, timeFrame)));
}
I commented all and Ea compiles without errors, but how's magic number sintax?.
Author:  milanese [ Sat Jul 26, 2014 3:16 pm ]
Post subject:  Need advise on this code

fxcba » Sat Jul 26, 2014 2:50 pm wrote:Hello ppl

To learn how to do, I'm using a MA cross EA wich doesn't compile on 6xx version, I solved almost all errors but I'm stuck on this part:

Code: Select all

 int subGenerateMagicNumber int MagicNumber, string symbol, int timeFrame
{
   int isymbol =
   if (symbol == "EURUSD")       isymbol = 1;
   else if (symbol == "GBPUSD")  isymbol = 2;
   else if (symbol == "USDJPY")  isymbol = 3;
   else if (symbol == "USDCHF")  isymbol = 4;
   else if (symbol == "AUDUSD")  isymbol = 5;
   else if (symbol == "USDCAD")  isymbol = 6;
   else if (symbol == "EURGBP")  isymbol = 7;
   else if (symbol == "EURJPY")  isymbol = 8;
   else if (symbol == "EURCHF")  isymbol = 9;
   else if (symbol == "EURAUD")  isymbol = 10;
   else if (symbol == "EURCAD")  isymbol = 11;
   else if (symbol == "GBPUSD")  isymbol = 12;
   else if (symbol == "GBPJPY")  isymbol = 13;
   else if (symbol == "GBPCHF")  isymbol = 14;
   else if (symbol == "GBPAUD")  isymbol = 15;
   else if (symbol == "GBPCAD")  isymbol = 16;
   else                          isymbol = 17;
   if(isymbol<10) MagicNumber = MagicNumber * 10;
   return (StrToInteger(StringConcatenate(MagicNumber, isymbol, timeFrame)));
}
I commented all and Ea compiles without errors, but how's magic number sintax?.
maybe you can attach the EA, than I can take a look ..

Cheers :)

Tommaso
All times are UTC Page 2 of 5