Need advise on this code

fxcba
Trader
Posts: 46
Joined: Wed Aug 21, 2013 10:10 pm

Need advise on this code

Post by fxcba »

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
You do not have the required permissions to view the files attached to this post.
User avatar
SteveHopwood
Owner
Posts: 9904
Joined: Tue Nov 15, 2011 8:43 am
Location: Misterton - an insignificant village in England. Very pleasant to live in.

Need advise on this code

Post by SteveHopwood »

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:
Read the effing manual, ok?

Afterprime is the official SHF broker. Read about them at https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?p=175790#p175790.

I still suffer from OCCD. Good thing, really.

Anyone here feeling generous? My paypal account is always in the market for a tiny donation. pianodoodler@hotmail.com is the account.

To see The Weekly Roundup of stuff you guys might have missed Click here

My special thanks to Thomas (tomele) for all the incredible work he does here.
fxcba
Trader
Posts: 46
Joined: Wed Aug 21, 2013 10:10 pm

Need advise on this code

Post by fxcba »

Thank you for your kind words Steve
cheers :smile:
fxcba
Trader
Posts: 46
Joined: Wed Aug 21, 2013 10:10 pm

Need advise on this code

Post by fxcba »

Well
One more step, it's getting closer, but still I'm missing something, can someone check the "DrawArrow" sintax?
You do not have the required permissions to view the files attached to this post.
User avatar
milanese
TechAdmin
Posts: 3293
Joined: Wed Jan 09, 2013 9:02 am
Location: btr rdx, r8 +

Need advise on this code

Post by milanese »

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
Global Prime is the official SHF broker :yahoo:
Searching for Servers and Workstations with individual configuration?
Just PM
:smile: Click here to go to the BoardKnowledgeBase
NOTE: Cookies and JavaScript are required for the using the board, with full functionality
fxcba
Trader
Posts: 46
Joined: Wed Aug 21, 2013 10:10 pm

Need advise on this code

Post by fxcba »

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: ,
User avatar
milanese
TechAdmin
Posts: 3293
Joined: Wed Jan 09, 2013 9:02 am
Location: btr rdx, r8 +

Need advise on this code

Post by milanese »

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
Global Prime is the official SHF broker :yahoo:
Searching for Servers and Workstations with individual configuration?
Just PM
:smile: Click here to go to the BoardKnowledgeBase
NOTE: Cookies and JavaScript are required for the using the board, with full functionality
fxcba
Trader
Posts: 46
Joined: Wed Aug 21, 2013 10:10 pm

Need advise on this code

Post by fxcba »

Thank you my friend.
I'll forward test it on my live account and see how it does
:)
Cheers
fxcba
Trader
Posts: 46
Joined: Wed Aug 21, 2013 10:10 pm

Need advise on this code

Post by fxcba »

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?.
User avatar
milanese
TechAdmin
Posts: 3293
Joined: Wed Jan 09, 2013 9:02 am
Location: btr rdx, r8 +

Need advise on this code

Post by milanese »

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
Global Prime is the official SHF broker :yahoo:
Searching for Servers and Workstations with individual configuration?
Just PM
:smile: Click here to go to the BoardKnowledgeBase
NOTE: Cookies and JavaScript are required for the using the board, with full functionality
Post Reply

Return to “Coders Hangout”