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

Nanningbob 10.5 EA
https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?t=2488
Page 1 of 21
Author:  kwanann [ Mon Jun 10, 2013 7:22 am ]
Post subject:  Nanningbob 10.5 EA

SERIOUS WARNING
  • Most Forex traders lose all their money.
  • Using the robot posted here in trading Forex does not guarantee success.
  • Trading this robot could lead to serious financial loss.
  • Trading this robot without understanding its underlying trading strategies guarantees traders will lose their money.
  • This is not a set-and-forget ea; there is no such thing and anyone who tries to claim there is, is either stupid or lying. This ea requires frequent manual intervention.
  • At best, a trading robot is only 90% as good as the manual strategy it trades. At best. At worst, it can be much less effective. If the strategy is rubbish, so is the robot.
  • To trade this robot, you have to understand:
    • How to use EA's.
    • Nanningbob 10.5


Introduction
Go and read up on Nanningbob's 10.5 (http://www.stevehopwoodforex.com/phpBB3 ... =38&t=1481) as well as the 10.5 trades (http://www.stevehopwoodforex.com/phpBB3 ... =38&t=2137) to get you started

Trading Method

The EA trades ONLY the daily pivots. It will open trades from the pivot nearest to current position till DR2 or DS2, you can change the setting if you wish, but generally trades stay within those range.
  • 240MA: Buy above 240MA, sell below 240MA
  • RSI: RSI needs to be pinned TOP for sell and pinned bottom for BUY
  • CSS: H4 CSS and H1 CSS needs to be goldenrod or green to set pending buy, reverse for sell
Total of 6 trade decision signals will be generated
Signal_Buy = Price > 240MA, RSI < RSILevelLow, CSS_H1 = Green, CSS_H4 = Green
Signal_Buy_Pending = Price > 240MA, RSI < RSILevelLow, CSS_H1 = Green or GoldenRod, CSS_H4 = Green or GoldenRod
Signal_Buy_CSS = CSS_H1 = Green, CSS_H4 = Green
Signal_Sell = Price < 240MA, RSI > RSILevelHigh, CSS_H1 = Red, CSS_H4 = Red
Signal_Sell_Pending = Price < 240MA, RSI > RSILevelHigh, CSS_H1 = Red or GoldenRod, CSS_H4 = Red or GoldenRod
Signal_Sell_CSS = CSS_H1 = Red, CSS_H4 = Red

Based on the Trade Signals, one of the following actions will be taken
----------------------------------------------------------------------------------------------------
| Signal Variable | Buy Trades | Buy Pending | Sell Trades | Sell Pending | Comments
----------------------------------------------------------------------------------------------------
| Signal_Buy | NA | Add | Close | Close | Strongest BUY signal
| Signal_Buy_Pending | NA | Add | Close | Close | Medium BUY signal
| Signal_Buy_CSS | NA | NA | Close | Close | CSS Based Buy Signal
| Signal_Sell | Close | Close | NA | Add | Strongest Sell signal
| Signal_Sell_Pending | Close | Close | NA | Add | Medium Sell signal
| Signal_Sell_CSS | Close | Close | NA | NA | CSS Based Sell Signal
-----------------------------------------------------------------------------------------------------

Trade Exit
TP is set to the next main Pivot, ie a trade at DP and DMR1 will TP at DR1

Important Things to Note
For demo accounts, TakeTrades will be automatically set to true, real accounts will honor the TakeTrades variable.

How to use this EA
If you have no idea, please go google or something.

Useful Scripts
Pretty obvious based on the filename...
Look at the comments for each of the variables for more detailed explaination

Changelog
.b
- Support Sunday Candles (update the LibCSS_Kwanann for this)
- Change TradeComment variable to a boolean AddTradeComment
- Add in DifferenceInPipsBetweenPending variable
- Add in LotsRiskPercent based on SL
- Add in ExcludeFreeMarginAmount
- Add in MinSL, MaxSL
- Add in S3 and R3

.c
- Fixed bug in PivotLevelToString where it was reporting the wrong level (due to the new S3 and R3 levels)
- Added a very BIG label at the bottom right to show the trade signals, e.g (B)321 (S)1, 3 - strong buy signal, 2 buy pending signal, 1 buy css signal
- Updated the objPrefix so that it doesnt go and create too many things on the chart
- Added check so that checkSignal is only called when it is completed, this can be the cause of (a)
- Added debug info in comments to try and figure out (b)

.d
- Added in validation checks for LotsRiskPercent
- Use variable SPending_CssUseClosedBar, SCSS_CssUseClosedBar
- AddOrdersOnMidPivots = true;
- Added NoTradeAboveSLPips

.e
- Fixed bug, instead of SELL STOP i enter BUY STOP

.f
- Put all the coding together in one file, no need the LibCSS_kwanann anymore
- Modified 10.5 CurrencySlopeStrength 1.0.7d for use for the EA, named CSS_kwanann

.g
- Now need LibCSS_Kwanann again
- Added global market trend filter
- sell bug fixed

.h
- Removed iCustom
- Use Baluda's latest libcss


.i
- Allow you to choose which one you want to use, indi or lib


LATEST VERSION IS i
extern bool UseIndi = false;
Play around with the UseIndi to see which works for you, if UseIndi=false does not give you goldenrods, go and use them, if it does, then you are stuck with the ICustom calls which does generate a fair bit of CPU

One important thing to note, the EA is using 1.0.8 which seems to calculate differently from 1.0.7 (refer to the screenshot of EU)
EURUSD.PNG
Author:  fahedksa [ Mon Jun 10, 2013 10:00 am ]
Post subject:  Re: Nanningbob 10.5 EA

Hi Kwanann,
Great effort , I tried EA with demo account and its do great EA open same pending orders i enter manually .
I just want ask is there option to to but pending on main lines not mid?
Author:  kwanann [ Mon Jun 10, 2013 12:27 pm ]
Post subject:  Re: Nanningbob 10.5 EA

It should perform as per 10.x rules. No setting at this point to disable mid levels, will add that in later on
Author:  mjws00 [ Mon Jun 10, 2013 9:18 pm ]
Post subject:  Re: Nanningbob 10.5 EA

Cool work kwanann. Played with it a bit.

Sunday candle breaks your daily pivot calcs. Didn't look at the code too deep, but shouldn't be hard to find some pivot code to borrow to recalc. Maybe doesn't effect your broker. Breaks Bob based GMT-0 (Cowboy IBFX).

H1 Pending order script is nice too.

Mike
Author:  sponn [ Mon Jun 10, 2013 9:33 pm ]
Post subject:  Re: Nanningbob 10.5 EA

Hello kwanann. Many thx for your great efforts. Just want to clear some things:

1. What timeframe should be bot on ? Does it matter ?
2. It is trading fixed lot size ? Do you plan to add %risk (SL at nearest Pivot or 240 line)
3. It is trading to the next line. Do you plan to allow to set TP by user (DS/R, DS/R2 or even 3).
4. Do you plan to add additional orders at next pivot lines.
Author:  kwanann [ Mon Jun 10, 2013 10:55 pm ]
Post subject:  Re: Nanningbob 10.5 EA

mjws00 wrote:Cool work kwanann. Played with it a bit.

Sunday candle breaks your daily pivot calcs. Didn't look at the code too deep, but shouldn't be hard to find some pivot code to borrow to recalc. Maybe doesn't effect your broker. Breaks Bob based GMT-0 (Cowboy Cowboy IBFX).

H1 Pending order script is nice too.

Mike
Ahhh no wonder, thx for the input, will go figure where to disable sunday candle
Author:  kwanann [ Mon Jun 10, 2013 10:59 pm ]
Post subject:  Re: Nanningbob 10.5 EA

sponn wrote:Hello kwanann. Many thx for your great efforts. Just want to clear some things:

1. What timeframe should be bot on ? Does it matter ?

Doesn't matter, it uses hard coded tf in the calculations

2. It is trading fixed lot size ? Do you plan to add %risk (SL at nearest Pivot or 240 line)

Yes fixed lot size for now

3. It is trading to the next line. Do you plan to allow to set TP by user (DS/R, DS/R2 or even 3).

This is currently following bob rules, TP line by line, do you mean to say you want all the trades to TP at the same place?

On the subject of dr,ds3, anyone knows how to calc that? I only found the code to 2..


4. Do you plan to add additional orders at next pivot lines.
It trades from pivot line to pivot lines, orders are reloaded when applicable, e.g on retrace, but there will never be 2 trades that are near to each other, I believe they must be at least 10pips away
Author:  kwanann [ Tue Jun 11, 2013 2:52 am ]
Post subject:  Re: Nanningbob 10.5 EA

version b is in post 1, made a fair bit of changes so it would be good to update

For those that are testing out, if possible, please help to test the various SL techniques.

I'm using the OOTB settings as i find them quite safe, if you are trying variants, do let me know your results
Author:  sponn [ Tue Jun 11, 2013 9:24 am ]
Post subject:  Re: Nanningbob 10.5 EA

Great results Kwanann. Again many thx for your hard work. You have made it very simple and it is working great.

I've started today morning (5 hours ago). Until now - gains 3.5%, almost no DD.
Author:  kwanann [ Tue Jun 11, 2013 11:25 am ]
Post subject:  Re: Nanningbob 10.5 EA

sponn wrote:Great results Kwanann. Again many thx for your hard work. You have made it very simple and it is working great.

I've started today morning (5 hours ago). Until now - gains 3.5%, almost no DD.

Ya same, the siggy shows almost non existence dd for both methods. What I like so far is its ability to close trades that may go the wrong way. Yet to see any pair hit SL, most were killed by red css
All times are UTC Page 1 of 21