Hello
It's me again
I found this indi on FF
and changed into this
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
Need advise on this code
-
fxcba
- Trader
- Posts: 46
- Joined: Wed Aug 21, 2013 10:10 pm
Need advise on this code
You do not have the required permissions to view the files attached to this post.
- 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
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.
All of us knew nothing when we started.
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.
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
Thank you for your kind words Steve
cheers
cheers
-
fxcba
- Trader
- Posts: 46
- Joined: Wed Aug 21, 2013 10:10 pm
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?
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.
- milanese
- TechAdmin
- Posts: 3293
- Joined: Wed Jan 09, 2013 9:02 am
- Location: btr rdx, r8 +
Need advise on this code
looks good.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?
line 316 I do not understand why you use Point/2 I would use Point...
Cheers
Tommaso
Global Prime is the official SHF broker 
Searching for Servers and Workstations with individual configuration?
Just PM
Click here to go to the BoardKnowledgeBase
NOTE: Cookies and JavaScript are required for the using the board, with full functionality
Searching for Servers and Workstations with individual configuration?
Just PM
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
Hi Tomaso thank you for your timemilanese » Tue Jul 22, 2014 2:08 pm wrote:looks good.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?
line 316 I do not understand why you use Point/2 I would use Point...
Cheers
Tommaso
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
- milanese
- TechAdmin
- Posts: 3293
- Joined: Wed Jan 09, 2013 9:02 am
- Location: btr rdx, r8 +
Need advise on this code
okfxcba » 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,
Cheers
Tommaso
Global Prime is the official SHF broker 
Searching for Servers and Workstations with individual configuration?
Just PM
Click here to go to the BoardKnowledgeBase
NOTE: Cookies and JavaScript are required for the using the board, with full functionality
Searching for Servers and Workstations with individual configuration?
Just PM
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
Thank you my friend.
I'll forward test it on my live account and see how it does
Cheers
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
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:
I commented all and Ea compiles without errors, but how's magic number sintax?.
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)));
}
- milanese
- TechAdmin
- Posts: 3293
- Joined: Wed Jan 09, 2013 9:02 am
- Location: btr rdx, r8 +
Need advise on this code
maybe you can attach the EA, than I can take a look ..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:I commented all and Ea compiles without errors, but how's magic number sintax?.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))); }
Cheers
Tommaso
Global Prime is the official SHF broker 
Searching for Servers and Workstations with individual configuration?
Just PM
Click here to go to the BoardKnowledgeBase
NOTE: Cookies and JavaScript are required for the using the board, with full functionality
Searching for Servers and Workstations with individual configuration?
Just PM
NOTE: Cookies and JavaScript are required for the using the board, with full functionality