The Beast stirs. He's got a slope.

Post Reply
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.

Re: The Beast stirs. He's got a slope.

Post by SteveHopwood »

xlitang wrote:
xlitang wrote:Could someone please help me to modify the codes inside getSixths() below so that I call this function in EA to get values for TopLine and BottomLine for caurrency pairs that EA is not attached to. Say I attached EA to EURUSD chart, but I want to get values for AUDJPY pair, I will pass AUDJPY to GetSixths(symbol) to get TopLine and BottomLine for AUDJPY.


TopLine = High[iHighest(NULL,0,MODE_HIGH,BarCount,1)];
if (High[0] > TopLine) TopLine = NormalizeDouble(High[0], Digits);
BottomLine = Low[iLowest(NULL,0,MODE_LOW,BarCount,1)];
if (Low[0] < BottomLine) BottomLine = NormalizeDouble(Low[0], Digits);
Thanks, Steve,

Is this possible?
Probably like this:

Code: Select all

TopLine = High[iHighest("AUDJPY",0,MODE_HIGH,BarCount,1)];
   if (iHigh("AUDJPY", 0, 0) > TopLine) TopLine = iHigh("AUDJPY", 0, 0);
      
   BottomLine = Low[iLowest("AUDJPY",0,MODE_LOW,BarCount,1)];
   if (iLow("AUDJPY", 0, 0) < BottomLine) BottomLine = iLow("AUDJPY", 0, 0);
Try it and see.

:D
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.
xlitang
Trader
Posts: 42
Joined: Mon Nov 21, 2011 8:33 pm

Re: The Beast stirs. He's got a slope.

Post by xlitang »

Thanks Steve,

It does not work.
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.

Re: The Beast stirs. He's got a slope.

Post by SteveHopwood »

xlitang wrote:Thanks Steve,

It does not work.
Not surprised. I can spend hours banging my head against this sort of thingy. Good luck.

:D
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.
User avatar
Sojourner
Trader
Posts: 105
Joined: Fri Apr 27, 2012 7:36 pm

Re: The Beast stirs. He's got a slope.

Post by Sojourner »

Nipponho wrote:Hi Sojourner,
http://www.stevehopwoodforex.com/phpBB3 ... ?f=5&t=597
Last paragraph.
Still doing it. Runs fine for a few days and then locks up. The only way to break it is to stick a fresh mq4 in there and let it recompile a new one. :cry:
xlitang
Trader
Posts: 42
Joined: Mon Nov 21, 2011 8:33 pm

Re: The Beast stirs. He's got a slope.

Post by xlitang »

SteveHopwood wrote:
xlitang wrote:Thanks Steve,

It does not work.
Not surprised. I can spend hours banging my head against this sort of thingy. Good luck.

:D
Steve,

This is correct code that do the magic. I asked in FF and got help from Paul. With this in place I think we can code an EA just to run on a chart and trade multiple pairs.

GetBarCount(PairsToTrade);
double TopLine = iHigh(PairsToTrade, PERIOD_H1, iHighest(PairsToTrade,PERIOD_H1,MODE_HIGH,BarCount, 1));

Print(PairsToTrade + " Top: " + TopLine);
if (iHigh(PairsToTrade, PERIOD_H1, 0) > TopLine) TopLine = iHigh(PairsToTrade, PERIOD_H1, 0);
Print(PairsToTrade + " Top2: " + TopLine);

double BottomLine = iLow(PairsToTrade, PERIOD_H1, iLowest(PairsToTrade,PERIOD_H1,MODE_LOW,BarCount, 1));
Print(PairsToTrade + "Bottom: " + BottomLine);
if (iLow(PairsToTrade, PERIOD_H1, 0) < BottomLine) BottomLine = iLow(PairsToTrade, PERIOD_H1, 0);
Print(PairsToTrade + " Bottom2: " + BottomLine);
//----
User avatar
cuzgeorge
Trader
Posts: 674
Joined: Mon Mar 05, 2012 10:10 am
Location: Johannesburg, South Africa.

Re: The Beast stirs. He's got a slope.

Post by cuzgeorge »

Okay, ready for monday on chicago and Morgb pairs. Lets see this one rock. exclusively on 1hr and ONLY running ol slopey beast here. Guess how i figured this one out, (It helps to read the user guides again and again (and post 1 again and again and again and then again)) :oops: hehehe.

Image

EDIT;
i forgot this one thats been running for a while;

Image
10.X, BMac,Xmeter,Marylin,and CaptsNakedTrading thread coupled with Slowkeys Intraday setup for manual trades.
http://www.stevehopwoodforex.com/phpBB3 ... f=36&t=848
User avatar
cuzgeorge
Trader
Posts: 674
Joined: Mon Mar 05, 2012 10:10 am
Location: Johannesburg, South Africa.

Re: The Beast stirs. He's got a slope.

Post by cuzgeorge »

Hi Steve, all,
here's a strange one.
as per pic. the position referenced here (13848247)was closed on the 14th of aug. the number has remained in the global variables tab, but now this error comes up.
Leaky toilet Empty4, ????
any suggestions.
There were 3 more closed position in the global variables tab but like the dimwit i am, i erased them before i took the pic for the post.i erase them from the global variables folder so the ea/Empty4 dont see them, and the error msg stops.
regards
George, errr i mean "cuz"george. :)
You do not have the required permissions to view the files attached to this post.
10.X, BMac,Xmeter,Marylin,and CaptsNakedTrading thread coupled with Slowkeys Intraday setup for manual trades.
http://www.stevehopwoodforex.com/phpBB3 ... f=36&t=848
User avatar
cuzgeorge
Trader
Posts: 674
Joined: Mon Mar 05, 2012 10:10 am
Location: Johannesburg, South Africa.

Re: The Beast stirs. He's got a slope.

Post by cuzgeorge »

Hi all,
Steve, another demo account, brand new, no trades yet except for one GBPJPY pending order. error in experts tab showing that integer thingy again. hope this throws some light towards the bug. Code gets too confusing for me to follow here. any ideas?
have a great week.
cuzgeorge
You do not have the required permissions to view the files attached to this post.
10.X, BMac,Xmeter,Marylin,and CaptsNakedTrading thread coupled with Slowkeys Intraday setup for manual trades.
http://www.stevehopwoodforex.com/phpBB3 ... f=36&t=848
User avatar
cuzgeorge
Trader
Posts: 674
Joined: Mon Mar 05, 2012 10:10 am
Location: Johannesburg, South Africa.

Re: The Beast stirs. He's got a slope.

Post by cuzgeorge »

Hi all,
decided to tinker with slopey beast's settings a little. We had a general good week all round with all the ea's and i found SB was taking his time to get going. As per the attached pic, i've had growth of $43 (all winners) in closed banked positions and sitting with $-82 open positions,(5 losing 3 winning).

I left trading charts' settings alone to see how SB finishes them off (except lot size is now 0.1 from now on) and changed to the attached set file on pairs that had no trades, after reading the user guide and thread again for reference.

Amazing how much 'stuff' we learn and forget along the way that effect all running ea's presently.

the pic looks good but it's only $43 on a 100k account so i've increased the lotsize (at the risk of getting shot) to 0.1 and the new set file to 0.11 to differentiate easily when viewing. account is running since 25th august, so lets say 2 weeks. would've preferred more action for this period, and SB has run completely unprovoked or messed-with the 2 weeks on 1HR TF. I reboot PC's occasionally, maybe every two days.

my links are still updated a few posts back on myfxpagebook thingy.

no problems, freezing or errors or nothing, well done Steve. 8-)

in a nutshell;
- increased the spread allowance
- filtering with slope is now on
- increased the white box from 20 to 25 pips
- increased recovery TP from 20 to 30
- introduced JS 30 pips and cancelled candlestick trailing.

will post results in a few weeks or you can check up on the links.
any thoughts or recom's are very welcome. :idea:
cuzgeorge
You do not have the required permissions to view the files attached to this post.
10.X, BMac,Xmeter,Marylin,and CaptsNakedTrading thread coupled with Slowkeys Intraday setup for manual trades.
http://www.stevehopwoodforex.com/phpBB3 ... f=36&t=848
Mikey
Posts: 3
Joined: Mon Sep 17, 2012 4:52 pm

Re: The Beast stirs. He's got a slope.

Post by Mikey »

I'm currently testing this EA on a virtual cloud server that I created.

So far, it has placed a sell stop and a buy stop on a currency pair.

Since other people's results have looked good, I'll be demo testing this for maybe 2 weeks or so. The demo account also starts with an $50 investment. I have to invest a low amount of $ because I'm a Forex newbie and also a college student.

Afterwards, I'll be investing the same amount ($50) in a live account on the same place and see what happens.

Edit: I found this place from somehow coming across this link.
http://www.professionalwreckhead.com/?page_id=224
Post Reply

Return to “Automated trading systems”