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

The New Beast!
https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?t=63
Page 23 of 24
Author:  Pippopotamus [ Wed May 08, 2013 5:46 pm ]
Post subject:  Re: The New Beast!

jlcgarcia wrote:
Pippopotamus wrote:Hi Jose Luis, Not yet... Marcello, M30, and H1 are candidates... Pippo

Hi Pippo,

I have backtested this one, and it does what it has to do (close orders, and stop trading).

Take a look and tell me.

Simple Beast! Pippo 5.mq4

Regards



José Luis
Hi Jose Luis, Thank You very much. Utility is working as it should!!! Now optimal position size/acct. balance/EquityProtection parameters must be calculated. Will do my best...Pippo
Author:  Pippopotamus [ Wed May 08, 2013 8:11 pm ]
Post subject:  Re: The New Beast!

Here is a good pass...Jan 09'-Jan 12'... 3 years. 1 micro/$1500, protecting 30% of acct. bal. EquityProtection never came into play. Open trades were simply closed at end of test. When viewing this result it is important to keep in mind that output from Empty4 strat tester is, in the opinion of many, less than completely trustworthy.
Author:  thor68 [ Thu May 09, 2013 12:16 am ]
Post subject:  Re: The New Beast!

Pippopotamus wrote:Here is a good pass...Jan 09'-Jan 12'... 3 years. 1 micro/$1500, protecting 30% of acct. bal. EquityProtection never came into play. Open trades were simply closed at end of test. When viewing this result it is important to keep in mind that output from Empty4 strat tester is, in the opinion of many, less than completely trustworthy.
Pippo:

Is that OOTB?

If no, could you post the set file?
Author:  Pippopotamus [ Thu May 09, 2013 8:40 am ]
Post subject:  Re: The New Beast!

thor68 wrote:
Pippopotamus wrote:Here is a good pass...Jan 09'-Jan 12'... 3 years. 1 micro/$1500, protecting 30% of acct. bal. EquityProtection never came into play. Open trades were simply closed at end of test. When viewing this result it is important to keep in mind that output from Empty4 strat tester is, in the opinion of many, less than completely trustworthy.
Pippo:

Is that OOTB?

If no, could you post the set file?
H1, no WhiteBoxTrading, close at Gold, Trailing Stop=1, automate TS choice=1, and variables=1, Rsi at 60/13, 1,2,6 recovery, use CBI=0. These settings are not recommendations, just those I am testing ATM... Pippo
Author:  Pippopotamus [ Fri May 10, 2013 5:24 pm ]
Post subject:  Re: The New Beast!

'Into each life some rain must fall,'.....
Author:  KingHigh [ Sat May 11, 2013 6:30 pm ]
Post subject:  Re: The New Beast! Code Review Question

Pippo,

Firstly, I commend you for picking up this thread and revitalizing it. Great job.

I am going through the code to figure out how the recovery and hedge works. Was looking at this function and found that the handling of Buys and Sells is not symetrical. Take a look. I believe that both should be set to TRUE in this function. Look for "////////////////////".

Just a nit: Also - as noted these variables are set as externs and initialize = false. Probably should just be global vars initialized.



void CalculateTradeClosureLine( int type )
{
close_trade_at_gold = false;// No need to be an extern
close_trade_at_green = false;// No need to be an extern
close_trade_at_middle_white = false;// No need to be an extern
close_box_trade_at_magenta = false;// No need to be an extern
close_box_trade_at_gold = false;// No need to be an extern
trail_box_trade_at_magenta = false;// No need to be an extern
trail_box_trade_at_gold = false;// No need to be an extern

//Low
if( type == OP_BUY )
{
if( rsi_val <= 45 )
{
close_trade_at_gold = true;
close_box_trade_at_gold = true;
}
if( rsi_val > 45 && rsi_val < 55 )
{
close_trade_at_green = true;
close_box_trade_at_magenta = true;
}
if( rsi_val >= 55 )
{
close_trade_at_middle_white = true;
trail_box_trade_at_gold = true; ///////////////////////////////
}
}
if( type == OP_SELL )
{
if( rsi_val <= 45 )
{
close_trade_at_middle_white = true;
trail_box_trade_at_gold = false; //////////////////////////////
}
if( rsi_val > 45 && rsi_val < 55 )
{
close_trade_at_green = true;
close_box_trade_at_magenta = true;
}
if( rsi_val >= 55 )
{
close_trade_at_gold = true;
close_box_trade_at_gold = true;
}
}
}//void CalculateTradeClosureLine()
Author:  Pippopotamus [ Sun May 12, 2013 3:25 pm ]
Post subject:  Re: The New Beast! Code Review Question

KingHigh wrote:Pippo,

Firstly, I commend you for picking up this thread and revitalizing it. Great job.

I am going through the code to figure out how the recovery and hedge works. Was looking at this function and found that the handling of Buys and Sells is not symetrical. Take a look. I believe that both should be set to TRUE in this function. Look for "////////////////////".

Just a nit: Also - as noted these variables are set as externs and initialize = false. Probably should just be global vars initialized.



void CalculateTradeClosureLine( int type )
{
close_trade_at_gold = false;// No need to be an extern
close_trade_at_green = false;// No need to be an extern
close_trade_at_middle_white = false;// No need to be an extern
close_box_trade_at_magenta = false;// No need to be an extern
close_box_trade_at_gold = false;// No need to be an extern
trail_box_trade_at_magenta = false;// No need to be an extern
trail_box_trade_at_gold = false;// No need to be an extern

//Low
if( type == OP_BUY )
{
if( rsi_val <= 45 )
{
close_trade_at_gold = true;
close_box_trade_at_gold = true;
}
if( rsi_val > 45 && rsi_val < 55 )
{
close_trade_at_green = true;
close_box_trade_at_magenta = true;
}
if( rsi_val >= 55 )
{
close_trade_at_middle_white = true;
trail_box_trade_at_gold = true; ///////////////////////////////
}
}
if( type == OP_SELL )
{
if( rsi_val <= 45 )
{
close_trade_at_middle_white = true;
trail_box_trade_at_gold = false; //////////////////////////////
}
if( rsi_val > 45 && rsi_val < 55 )
{
close_trade_at_green = true;
close_box_trade_at_magenta = true;
}
if( rsi_val >= 55 )
{
close_trade_at_gold = true;
close_box_trade_at_gold = true;
}
}
}//void CalculateTradeClosureLine()
Glad to see you here KH, hope you have the inclination to participate... Pippo
Author:  Pippopotamus [ Mon May 13, 2013 2:11 pm ]
Post subject:  Re: The New Beast!

King High, I made Buy/Sell correction you suggested above. I have noted since day 1 with this BOT that Magenta line closure style will always be Auto Calc'd regardless of setting(i.e., I have...close trade at gold selected, but EA will auto calc anyway). BTW, Usd/Chf still stubbornly unrepentant...
Author:  jlcgarcia [ Mon May 13, 2013 2:57 pm ]
Post subject:  Re: The New Beast!

Pippopotamus wrote:King High, I made Buy/Sell correction you suggested above. I have noted since day 1 with this BOT that Magenta line closure style will always be Auto Calc'd regardless of setting(i.e., I have...close trade at gold selected, but EA will auto calc anyway). Does that have anything to do with the extern/global var issue you referred to above? Any Ideas for remedy? ...BTW, Usd/Chf still stubbornly unrepentant...

Hi Pippo,

try these version. I have corrected the AutoCalc. If you choose AutoCalc false, you must select a line for closing.

Simple Beast! Pippo 6.mq4
Regards


José Luis
Author:  Pippopotamus [ Mon May 13, 2013 3:10 pm ]
Post subject:  Re: The New Beast!

jlcgarcia wrote:
Pippopotamus wrote:King High, I made Buy/Sell correction you suggested above. I have noted since day 1 with this BOT that Magenta line closure style will always be Auto Calc'd regardless of setting(i.e., I have...close trade at gold selected, but EA will auto calc anyway). Does that have anything to do with the extern/global var issue you referred to above? Any Ideas for remedy? ...BTW, Usd/Chf still stubbornly unrepentant...

Hi Pippo,

try these version. I have corrected the AutoCalc. If you choose AutoCalc false, you must select a line for closing.

Simple Beast! Pippo 6.mq4
Regards


José Luis
Jose Luis, Thank you once again. Will change EA after current trades are resolved. Thank You, and Best Wishes for this new trading week.......P
All times are UTC Page 23 of 24