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

The Beast stirs. He's got a slope.
https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?t=698
Page 19 of 24
Author:  SteveHopwood [ Mon Aug 13, 2012 6:28 pm ]
Post subject:  Re: The Beast stirs. He's got a slope.

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
Author:  xlitang [ Mon Aug 13, 2012 8:36 pm ]
Post subject:  Re: The Beast stirs. He's got a slope.

Thanks Steve,

It does not work.
Author:  SteveHopwood [ Mon Aug 13, 2012 9:14 pm ]
Post subject:  Re: The Beast stirs. He's got a slope.

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
Author:  Sojourner [ Tue Aug 14, 2012 10:25 am ]
Post subject:  Re: The Beast stirs. He's got a slope.

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:
Author:  xlitang [ Tue Aug 14, 2012 2:13 pm ]
Post subject:  Re: The Beast stirs. He's got a slope.

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);
//----
Author:  cuzgeorge [ Sat Aug 25, 2012 5:23 pm ]
Post subject:  Re: The Beast stirs. He's got a slope.

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
Author:  cuzgeorge [ Sun Aug 26, 2012 9:33 pm ]
Post subject:  Re: The Beast stirs. He's got a slope.

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. :)
Author:  cuzgeorge [ Sun Aug 26, 2012 9:57 pm ]
Post subject:  Re: The Beast stirs. He's got a slope.

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
Author:  cuzgeorge [ Sat Sep 08, 2012 2:06 pm ]
Post subject:  Re: The Beast stirs. He's got a slope.

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
Author:  Mikey [ Mon Sep 17, 2012 5:01 pm ]
Post subject:  Re: The Beast stirs. He's got a slope.

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
All times are UTC Page 19 of 24