Holy Graily Bob Basics - ask your questions here.

EA's inspired by nanningbob's work here, especially those based on his 240 Moving Average trend detection filter.
Post Reply
User avatar
milanese
TechAdmin
Posts: 3293
Joined: Wed Jan 09, 2013 9:02 am
Location: btr rdx, r8 +

Holy Graily Bob Basics - ask your questions here.

Post by milanese »

matrixebiz » Mon Jan 05, 2015 8:49 pm wrote:Just curious, do I always need to upgrade to that latest INDI?
I'm using v15.06 and getting indi expired errors in my expert tab :(
restart the platform and the error will not be shown again..

Cheers :)

Tommaso
Global Prime is the official SHF broker :yahoo:
Searching for Servers and Workstations with individual configuration?
Just PM
:smile: Click here to go to the BoardKnowledgeBase
NOTE: Cookies and JavaScript are required for the using the board, with full functionality
sim2505
Trader
Posts: 46
Joined: Sun Feb 09, 2014 11:12 pm

Holy Graily Bob Basics - ask your questions here.

Post by sim2505 »

SteveHopwood » Mon Jan 05, 2015 9:19 pm wrote:
sim2505 » Mon Jan 05, 2015 9:00 pm wrote:Hi everyone !

I just would like to know if it's hard to add the possibility to filter trade with the TMA position:
extern int Fast MA_Period =
extern int Slow MA_Period =

where Fast TMA should be > Slow to accept a buy trade ? and reverse for sell

Thanks for your answer !

Sim
Dead easy but go with what you have for now until we see a need for another filter. It is quite good as it iw.

:xm:
Ok Thanks steve ;)
matrixebiz
Trader
Posts: 70
Joined: Wed Nov 16, 2011 4:39 am

Holy Graily Bob Basics - ask your questions here.

Post by matrixebiz »

milanese » Mon Jan 05, 2015 4:31 pm wrote:
matrixebiz » Mon Jan 05, 2015 8:49 pm wrote:Just curious, do I always need to upgrade to that latest INDI?
I'm using v15.06 and getting indi expired errors in my expert tab :(
restart the platform and the error will not be shown again..

Cheers :)

Tommaso
Ok, I just restarted it and the message I get is;
"2015.01.05 18:49:49.856 HGI_v15.06 USDCHF,H1: Holy Grail Indicator Expiration : 2015.04.01 00:00:01"

So I'll assume the expiration is April 1st and not Jan 4th as what I was thinking. I'll just let it be for now, Thx.
Kimmy
Trader
Posts: 32
Joined: Thu Nov 17, 2011 10:57 am

Holy Graily Bob Basics - ask your questions here.

Post by Kimmy »

i have 2 queries for you those who are wise and clever :hi: .....

1. Wavy trades : is it possible to turn off the Instant Market option but ask HGB to set a pending order 10 pips from the signal price ? i have noticed that is often a retracement after a wavy buy/sell signal and this might cut down on DD on that first trade ? ...i have been looking at a way to do this but i havn't found one, am i missing something ?

2. is there a way to ask one of the trade managers to look at the total Equity on the account....not the daily profits or banked trades....but the Equity, so as to take into calculation the floating DD ?....then once the Equity reaches a certain amount to close all open and pending trades and shut HGB down for the day. Again i have been trying to figure out a way to do this with both MPTM and HGB Basket Manager and unless i am missing something it doesn't seem to be possible ???

i know all are very busy but i would really really appreciate any suggestions, advice, pointers in the right direction .....many thanks

My brain hurts :arrrg: ........
User avatar
matt_32
Trader
Posts: 204
Joined: Tue Apr 03, 2012 8:51 am
Location: Crete, Greece

Holy Graily Bob Basics - ask your questions here.

Post by matt_32 »

Not sure if this has been answered before .....but I've been having problems with multiple orders sent at the same time for some trading pairs. I've set the safety feature in the EA to open trades at least every 15 mins, but the system seems to be generating 2-3- or even more trades at the same time.
What am I doing wrong?


Matt
You do not have the required permissions to view the files attached to this post.
"Wise men speak because they have something to say; Fools because they have to say something." - Plato 347 BC
zhengzuodong
Trader
Posts: 59
Joined: Sat Aug 02, 2014 8:38 am

Holy Graily Bob Basics - ask your questions here.

Post by zhengzuodong »

Hey, everybody is good.

Since version 2E, 2f, 2G, no any trading? :arrrg: :arrrg: :arrrg:
Who can help me to have a look this setting what is wrong?

Thanks in advance

Code: Select all

extern string   hgi="---- HGI Inputs ----";
extern string   HGI_Name="HGI_v15.08";
extern int      HgiReadDelaySeconds=60;//cpu saver. Read the indi every minute by default
extern string   hgitff="---- HGI TimeFrame Filters ----";
extern int      HighestTimeFrame=0;//Only trade when there is a green or red trend arrow on this tf. 0 to disable.
extern int      HighestTFCandlesLookBack=10;//Furthest back in time to look for an arrow. 0 means the current candle.
extern int      MediumTimeFrame=0;//Only trade in the direction of a signal on this time frame.
////////////////////////////////////////////////////////////////////////////////////////
extern string   sep2="================================================================";

extern string   gen="----General inputs----";
extern int      TradingTimeFrame=240;//Defaults to H4. 0 means current chart tf
extern int      MaxOverallTrades=5;//Maximum mixture of trend, range and re-entry trades
extern bool     BrokerAllowsHedging=true;
extern bool     EveryTickMode=true;
extern bool     StopTrading=false;
extern bool     TradeLong=true;
extern bool     TradeShort=true;
extern int      MagicNumber=0;
extern bool     IsGlobalPrimeOrECNCriminal=false;
extern double   MaxSlippagePips=5;
//We need more safety to combat the cretins at Crapperquotes managing to break Matt's OR code occasionally.
//EA will make no further attempt to trade for PostTradeAttemptWaitSeconds seconds, whether OR detects a receipt return or not.
extern int      PostTradeAttemptWaitSeconds=600;//Defaults to 10 minutes
////////////////////////////////////////////////////////////////////////////////////////
string          TmaStatus="";//Will be one of the TMA constants defined at the top of this file

extern string   sep1="================================================================";
extern string   dpt="---- Daily profit targets ----";
extern double   PercentOfBalanceTarget=0;//Zero value turns this off
extern int      CashProfitTarget=30;//Zero value turns this off

extern string   sep11b="================================================================";
extern string   tts="======== Trading styles ========";
extern string   ttr="---- Trend Trading ----";
extern bool     TrendTradingAllowed=true;
extern int      TrendMaxTradesAllowed=3;//The maximum trades to send on the appearance of an arrow.
extern bool     TrendInstantMarketTrade=true;
extern bool     TrendPendingTrade=false;
extern int      TrendMinDistanceBetweenTradesPips=20;//Zero to disable
extern double   TrendLot=0.1;
extern double   TrendRiskPercent=0;//Set to zero to disable and use TrendLot
extern string   TrendTradeComment="Trend trade";
extern string   ttx="-- Trend trade exits --";
extern int      TrendTakeProfitPips=100;
extern int      TrendStopLossPips=0;
extern bool     TrendCloseOnOppositeArrow=true;//Close a Trend trade on the appearance of an opposite direction arrow
extern bool     TrendCloseOnOppositeTMA=true;//Close a Trend buy on a TMA high and sell on a TMA low
extern string   tatr="- Trend ATR tp and sl -";
extern int      TrendAtrPeriod=0;// 0 turns off atr
extern int      TrendAtrTimeFrame=1440;//Allows tf independent of the chart. 0 means current chart
extern double   TrendAtrTpMultiplier=1;
extern double   TrendAtrSlMultiplier=1;
extern string   tmp="-- Trend trade multiple positions --";
extern string   TrendMultiTradeComment="Trend multi trade";
extern double   TrendMultiTradeLot=0.1;
extern int      TrendMaxMultiTrades=5;//Max no of pending trades to send with the initial trend trade. Zero to disable.
extern int      TrendMultiTakeProfitPips=30;
extern int      TrendMultiStopLossPips=0;
extern bool     TrendMultiMiss100=true;//Don't set a pending on the 100 or 0 if this is enabled
////////////////////////////////////////////////////////////////////////////////////////
extern string   ss1="--------------------";
extern string   rtr="---- Range Trading ----";
extern bool     RangeTradingAllowed=false;
extern int      RangeMaxTradesAllowed=3;
extern int      RangeMinDistanceBetweenTradesPips=20;//Zero to disable
extern double   RangeLot=0.1;
extern double   RangeRiskPercent=0;//Set to zero to disable and use RangeLot
extern string   RangeTradeComment="Range trade";
extern string   rtx="-- Range trade exits --";
extern int      RangeTakeProfitPips=20;
extern int      RangeStopLossPips=20;
extern bool     RangeCloseOnOppositeArrow=true;//Close a Range trade on the appearance of an opposite direction arrow
extern bool     RangeCloseOnOppositeTMA=true;//Close a Range buy on a TMA high and sell on a TMA low
extern string   ratr="- Range ATR tp and sl -";
extern int      RangeAtrPeriod=0;// 0 turns off atr
extern int      RangeAtrTimeFrame=1440;//Allows tf independent of the chart. 0 means current chart
extern double   RangeAtrTpMultiplier=1;
extern double   RangeAtrSlMultiplier=1;
////////////////////////////////////////////////////////////////////////////////////////
extern string   ss2="--------------------";
extern string   rar="---- RAD Trading ----";
extern bool     RadTradingAllowed=false;
extern bool     RadInstantMarketTrade=false;
extern bool     RadPendingTrade=true;
extern int      RadMaxTradesAllowed=3;//The maximum trades to send on the appearance of an arrow.
extern int      RadMinDistanceBetweenTradesPips=20;//Zero to disable
extern double   RadLot=0.1;
extern double   RadRiskPercent=0;//Set to zero to disable and use RadLot
extern string   RadTradeComment="Rad trade";
extern string   rax="-- Rad trade exits --";
extern int      RadTakeProfitPips=100;
extern int      RadStopLossPips=0;
extern bool     RadCloseOnOppositeArrow=true;//Close a Rad trade on the appearance of an opposite direction arrow
extern bool     RadCloseOnOppositeTMA=true;//Close a Rad buy on a TMA high and sell on a TMA low
extern string   aatr="- RAD ATR tp and sl -";
extern int      RadAtrPeriod=0;// 0 turns off atr
extern int      RadAtrTimeFrame=1440;//Allows tf independent of the chart. 0 means current chart
extern double   RadAtrTpMultiplier=1;
extern double   RadAtrSlMultiplier=1;
extern string   rmp="-- Rad trade multiple positions --";
extern string   RadMultiTradeComment="Rad multi trade";
extern double   RadMultiTradeLot=0.1;
extern int      RadMaxMultiTrades=0;//Max no of pending trades to send with the initial Rad trade. Zero to disable.
extern int      RadMultiTakeProfitPips=30;
extern int      RadMultiStopLossPips=0;
extern bool     RadMultiMiss100=true;//Don't set a pending on the 100 or 0 if this is enabled
////////////////////////////////////////////////////////////////////////////////////////
extern string   ss3="--------------------";
extern string   war="---- Wavy Line Trading ----";
extern bool     WaveTradingAllowed=false;
extern bool     WaveInstantMarketTrade=false;
extern bool     WavePendingTrade=true;
extern int      WaveMaxTradesAllowed=3;//The maximum trades opened at one time.
extern int      WaveMinDistanceBetweenTradesPips=20;//Zero to disable
extern double   WaveLot=0.1;
extern double   WaveRiskPercent=0;//Set to zero to disable and use WaveLot
extern string   WaveTradeComment="Wave trade";
extern string   wax="-- Wave Trade exits --";
extern int      WaveTakeProfitPips=100;
extern int      WaveStopLossPips=0;
extern bool     WaveCloseOnOppositeArrow=true;//Close a Wave Trade on the appearance of an opposite direction Trend or Range arrow
extern bool     WaveCloseOnOppositeTMA=true;//Close a Wave buy on a TMA high and sell on a TMA low
extern string   wmp="-- Wave Trade multiple positions --";
extern string   WaveMultiTradeComment="Wave multi trade";
extern double   WaveMultiTradeLot=0.1;
extern int      WaveMaxMultiTrades=5;//Max no of pending Trades to send with the initial Wave Trade. Zero to disable.
extern int      WaveMultiTakeProfitPips=30;
extern int      WaveMultiStopLossPips=0;
extern bool     WaveMultiMiss100=true;//Don't set a pending on the 100 or 0 if this is enabled
////////////////////////////////////////////////////////////////////////////////////////
extern string   ss3a="--------------------";
extern string   twar="---- Combined Trend and Wavy Line Trading ----";
extern bool     TrendWaveTradingAllowed=true;
extern bool     TrendWaveInstantMarketTrade=true;
extern bool     TrendWavePendingTrade=false;
extern int      TrendWaveMaxTradesAllowed=30;//The maximum trades opened at one time.
extern double   TrendWaveLot=0.1;
extern double   TrendWaveRiskPercent=0;//Set to zero to disable and use TrendWaveLot
extern string   TrendWaveTradeComment="TrendWave trade";
extern int      TrendCandlesLookBack=4;
extern int      WaveCandlesLookBack=3;
extern string   twax="-- TrendWave Trade exits --";
extern int      TrendWaveTakeProfitPips=100;
extern int      TrendWaveStopLossPips=0;
extern bool     TrendWaveCloseOnOppositeArrow=true;//Close a TrendWave Trade on the appearance of an opposite direction Trend or Range arrow
extern bool     TrendWaveCloseOnOppositeTMA=true;//Close a TrendWave buy on a TMA high and sell on a TMA low
extern string   twmp="-- TrendWave Trade multiple positions --";
extern string   TrendWaveMultiTradeComment="TrendWave multi trade";
extern double   TrendWaveMultiTradeLot=0.1;
extern int      TrendWaveMaxMultiTrades=5;//Max no of pending Trades to send with the initial TrendWave Trade. Zero to disable.
extern int      TrendWaveMultiTakeProfitPips=30;
extern int      TrendWaveMultiStopLossPips=0;
extern bool     TrendWaveMultiMiss100=true;//Don't set a pending on the 100 or 0 if this is enabled
////////////////////////////////////////////////////////////////////////////////////////
extern string   sep111="================================================================";
////////////////////////////////////////////////////////////////////////////////////////
extern string   sfs="----SafetyFeature----";
extern int      MinMinutesBetweenTrades=0;
extern int      MinMinutesBetweenTradeOpenClose=0;
////////////////////////////////////////////////////////////////////////////////////////
extern string   sep2a="================================================================";
//Hidden tp/sl inputs.
extern string   hts="----Stealth stop loss and take profit inputs----";
extern int      PipsHiddenFromCriminal=0;//Added to the 'hard' sl and tp and used for closure calculations

extern string   sep7="================================================================";
//CheckTradingTimes. Baluda has provided all the code for this. Mny thanks Paul; you are a star.
extern string   trh            = "----Trading hours----";
extern string   tr1            = "tradingHours is a comma delimited list";
extern string   tr1a="of start and stop times.";
extern string   tr2="Prefix start with '+', stop with '-'";
extern string   tr2a="Use 24H format, local time.";
extern string   tr3="Example: '+07.00,-10.30,+14.15,-16.00'";
extern string   tr3a="Do not leave spaces";
extern string   tr4="Blank input means 24 hour trading.";
extern string   tradingHours="";
////////////////////////////////////////////////////////////////////////////////////////
extern string   sep8a="================================================================";
extern string   fmt="---- For the manual traders ----";
extern bool     UseForTradeManagementOnly=false;
extern bool     UseForSignalsDisplayOnly=false;

extern string   sep8="================================================================";
extern string   bf="----Trading balance filters----";
extern bool     UseZeljko=false;
extern bool     OnlyTradeCurrencyTwice=false;
////////////////////////////////////////////////////////////////////////////////////////
extern string   sep13="================================================================";
extern string   tmm="---- Trade management module ----";
//The Individual Pair as a Basket Closure settings and all its associated code was contributed by magft. It allows us to treat all the trades opened by 
//the pair as a 'basket' with its own tp and sl. Donated by magft. Many thanks Mike.
//Zero values turn these off.
extern string   BS="-- Individual Pair as a Basket Closure settings --";
extern double   BasketCashSl=0.0;
extern double   BasketCashSlPercent=0.00;
extern double   BasketCashTp=0.0;
extern double   BasketCashTpPercent=0;

//Breakeven has to be enabled for JS and TS to work.
extern string   BE="Break even settings";
extern bool     BreakEven=false;
extern int      BreakEvenTargetPips=10;
extern int      BreakEvenTargetProfit=5;
extern bool     PartCloseEnabled=false;
extern double   PartClosePercent=50;//Percentage of the trade lots to close
////////////////////////////////////////////////////////////////////////////////////////
double          BreakEvenPips,BreakEvenProfit;
bool            TradeHasPartClosed=false;
////////////////////////////////////////////////////////////////////////////////////////

extern string   sep14="================================================================";
extern string   JSL="Jumping stop loss settings";
extern bool     JumpingStop=false;
extern int      JumpingStopTargetPips=10;
extern bool     AddBEP=true;
////////////////////////////////////////////////////////////////////////////////////////
double          JumpingStopPips;
////////////////////////////////////////////////////////////////////////////////////////

extern string   sep15="================================================================";
extern string   cts="----Candlestick jumping stop----";
extern bool     UseCandlestickTrailingStop=false;
extern int      CstTimeFrame=0;//Defaults to current chart
extern int      CstTrailCandles=1;//Defaults to previous candle
extern bool     TrailMustLockInProfit=true;
////////////////////////////////////////////////////////////////////////////////////////
int             OldCstBars;//For candlestick ts
                           ////////////////////////////////////////////////////////////////////////////////////////

extern string   sep16="================================================================";
extern string   TSL="Trailing stop loss settings";
extern bool     TrailingStop=false;
extern int      TrailingStopTargetPips=20;
////////////////////////////////////////////////////////////////////////////////////////
double          TrailingStopPips;
////////////////////////////////////////////////////////////////////////////////////////

//Enhanced screen feedback display code provided by Paul Batchelor (lifesys). Thanks Paul; this is fantastic.
extern string   se52  ="================================================================";
extern string   oad               ="----Odds and ends----";
extern int      ChartRefreshDelaySeconds=60;
extern int      DisplayGapSize    = 30; // if using Comments
// ****************************** added to make screen Text more readable
extern bool     DisplayAsText     = true;  // replaces Comment() with OBJ_LABEL text
extern bool     KeepTextOnTop     = true;//Disable the chart in foreground CrapTx setting so the candles do not obscure the text
extern int      DisplayX          = 50;
extern int      DisplayY          = 0;
extern int      fontSise          = 10;
extern string   fontName          = "Arial";
extern color    colour            = Yellow;
extern double   spacingtweek      = 0.6; // adjustment to reform lines for different font size <!-- s:hi: --><img src=\"{SMILIES_PATH}/hi.gif\" alt=\":hi:\" title=\"hello\" /><!-- s:hi: --> 
User avatar
boinvest
Trader
Posts: 142
Joined: Wed May 28, 2014 6:56 am
Location: Netherlands

Holy Graily Bob Basics - ask your questions here.

Post by boinvest »

matt_32 » Tue Jan 06, 2015 10:05 am wrote:Not sure if this has been answered before .....but I've been having problems with multiple orders sent at the same time for some trading pairs. I've set the safety feature in the EA to open trades at least every 15 mins, but the system seems to be generating 2-3- or even more trades at the same time.
What am I doing wrong?


Matt
Is seems to work as inteded.
Hard to tell from your screehshot..

The purpose of this function:
The minbetweentrades is the time to wait between a different or same type of trade...
So it's normal that it is openning the single trade, and sent x Multiples right afterwards...

THEN, it should wait.. before the min minutes between trades pass..
(for that PAIR) You should see this message on screen..
*************** CANNOT TRADE YET. TOO SOON AFTER CLOSE OF PREVIOUS TRADE***************
after that time, should start trading again

Well, I didnt bother to look into this function..
As I like this thingy to make as many trades as possible..
User avatar
milanese
TechAdmin
Posts: 3293
Joined: Wed Jan 09, 2013 9:02 am
Location: btr rdx, r8 +

Holy Graily Bob Basics - ask your questions here.

Post by milanese »

zhengzuodong » Tue Jan 06, 2015 2:26 pm wrote:Hey, everybody is good.

Since version 2E, 2f, 2G, no any trading? :arrrg: :arrrg: :arrrg:
Who can help me to have a look this setting what is wrong?

Thanks in advance

Code: Select all

extern string   hgi="---- HGI Inputs ----";
extern string   HGI_Name="HGI_v15.08";
extern int      HgiReadDelaySeconds=60;//cpu saver. Read the indi every minute by default
extern string   hgitff="---- HGI TimeFrame Filters ----";
extern int      HighestTimeFrame=0;//Only trade when there is a green or red trend arrow on this tf. 0 to disable.
extern int      HighestTFCandlesLookBack=10;//Furthest back in time to look for an arrow. 0 means the current candle.
extern int      MediumTimeFrame=0;//Only trade in the direction of a signal on this time frame.
////////////////////////////////////////////////////////////////////////////////////////
extern string   sep2="================================================================";

extern string   gen="----General inputs----";
extern int      TradingTimeFrame=240;//Defaults to H4. 0 means current chart tf
extern int      MaxOverallTrades=5;//Maximum mixture of trend, range and re-entry trades
extern bool     BrokerAllowsHedging=true;
extern bool     EveryTickMode=true;
extern bool     StopTrading=false;
extern bool     TradeLong=true;
extern bool     TradeShort=true;
extern int      MagicNumber=0;
extern bool     IsGlobalPrimeOrECNCriminal=false;
extern double   MaxSlippagePips=5;
//We need more safety to combat the cretins at Crapperquotes managing to break Matt's OR code occasionally.
//EA will make no further attempt to trade for PostTradeAttemptWaitSeconds seconds, whether OR detects a receipt return or not.
extern int      PostTradeAttemptWaitSeconds=600;//Defaults to 10 minutes
////////////////////////////////////////////////////////////////////////////////////////
string          TmaStatus="";//Will be one of the TMA constants defined at the top of this file

extern string   sep1="================================================================";
extern string   dpt="---- Daily profit targets ----";
extern double   PercentOfBalanceTarget=0;//Zero value turns this off
extern int      CashProfitTarget=30;//Zero value turns this off

extern string   sep11b="================================================================";
extern string   tts="======== Trading styles ========";
extern string   ttr="---- Trend Trading ----";
extern bool     TrendTradingAllowed=true;
extern int      TrendMaxTradesAllowed=3;//The maximum trades to send on the appearance of an arrow.
extern bool     TrendInstantMarketTrade=true;
extern bool     TrendPendingTrade=false;
extern int      TrendMinDistanceBetweenTradesPips=20;//Zero to disable
extern double   TrendLot=0.1;
extern double   TrendRiskPercent=0;//Set to zero to disable and use TrendLot
extern string   TrendTradeComment="Trend trade";
extern string   ttx="-- Trend trade exits --";
extern int      TrendTakeProfitPips=100;
extern int      TrendStopLossPips=0;
extern bool     TrendCloseOnOppositeArrow=true;//Close a Trend trade on the appearance of an opposite direction arrow
extern bool     TrendCloseOnOppositeTMA=true;//Close a Trend buy on a TMA high and sell on a TMA low
extern string   tatr="- Trend ATR tp and sl -";
extern int      TrendAtrPeriod=0;// 0 turns off atr
extern int      TrendAtrTimeFrame=1440;//Allows tf independent of the chart. 0 means current chart
extern double   TrendAtrTpMultiplier=1;
extern double   TrendAtrSlMultiplier=1;
extern string   tmp="-- Trend trade multiple positions --";
extern string   TrendMultiTradeComment="Trend multi trade";
extern double   TrendMultiTradeLot=0.1;
extern int      TrendMaxMultiTrades=5;//Max no of pending trades to send with the initial trend trade. Zero to disable.
extern int      TrendMultiTakeProfitPips=30;
extern int      TrendMultiStopLossPips=0;
extern bool     TrendMultiMiss100=true;//Don't set a pending on the 100 or 0 if this is enabled
////////////////////////////////////////////////////////////////////////////////////////
extern string   ss1="--------------------";
extern string   rtr="---- Range Trading ----";
extern bool     RangeTradingAllowed=false;
extern int      RangeMaxTradesAllowed=3;
extern int      RangeMinDistanceBetweenTradesPips=20;//Zero to disable
extern double   RangeLot=0.1;
extern double   RangeRiskPercent=0;//Set to zero to disable and use RangeLot
extern string   RangeTradeComment="Range trade";
extern string   rtx="-- Range trade exits --";
extern int      RangeTakeProfitPips=20;
extern int      RangeStopLossPips=20;
extern bool     RangeCloseOnOppositeArrow=true;//Close a Range trade on the appearance of an opposite direction arrow
extern bool     RangeCloseOnOppositeTMA=true;//Close a Range buy on a TMA high and sell on a TMA low
extern string   ratr="- Range ATR tp and sl -";
extern int      RangeAtrPeriod=0;// 0 turns off atr
extern int      RangeAtrTimeFrame=1440;//Allows tf independent of the chart. 0 means current chart
extern double   RangeAtrTpMultiplier=1;
extern double   RangeAtrSlMultiplier=1;
////////////////////////////////////////////////////////////////////////////////////////
extern string   ss2="--------------------";
extern string   rar="---- RAD Trading ----";
extern bool     RadTradingAllowed=false;
extern bool     RadInstantMarketTrade=false;
extern bool     RadPendingTrade=true;
extern int      RadMaxTradesAllowed=3;//The maximum trades to send on the appearance of an arrow.
extern int      RadMinDistanceBetweenTradesPips=20;//Zero to disable
extern double   RadLot=0.1;
extern double   RadRiskPercent=0;//Set to zero to disable and use RadLot
extern string   RadTradeComment="Rad trade";
extern string   rax="-- Rad trade exits --";
extern int      RadTakeProfitPips=100;
extern int      RadStopLossPips=0;
extern bool     RadCloseOnOppositeArrow=true;//Close a Rad trade on the appearance of an opposite direction arrow
extern bool     RadCloseOnOppositeTMA=true;//Close a Rad buy on a TMA high and sell on a TMA low
extern string   aatr="- RAD ATR tp and sl -";
extern int      RadAtrPeriod=0;// 0 turns off atr
extern int      RadAtrTimeFrame=1440;//Allows tf independent of the chart. 0 means current chart
extern double   RadAtrTpMultiplier=1;
extern double   RadAtrSlMultiplier=1;
extern string   rmp="-- Rad trade multiple positions --";
extern string   RadMultiTradeComment="Rad multi trade";
extern double   RadMultiTradeLot=0.1;
extern int      RadMaxMultiTrades=0;//Max no of pending trades to send with the initial Rad trade. Zero to disable.
extern int      RadMultiTakeProfitPips=30;
extern int      RadMultiStopLossPips=0;
extern bool     RadMultiMiss100=true;//Don't set a pending on the 100 or 0 if this is enabled
////////////////////////////////////////////////////////////////////////////////////////
extern string   ss3="--------------------";
extern string   war="---- Wavy Line Trading ----";
extern bool     WaveTradingAllowed=false;
extern bool     WaveInstantMarketTrade=false;
extern bool     WavePendingTrade=true;
extern int      WaveMaxTradesAllowed=3;//The maximum trades opened at one time.
extern int      WaveMinDistanceBetweenTradesPips=20;//Zero to disable
extern double   WaveLot=0.1;
extern double   WaveRiskPercent=0;//Set to zero to disable and use WaveLot
extern string   WaveTradeComment="Wave trade";
extern string   wax="-- Wave Trade exits --";
extern int      WaveTakeProfitPips=100;
extern int      WaveStopLossPips=0;
extern bool     WaveCloseOnOppositeArrow=true;//Close a Wave Trade on the appearance of an opposite direction Trend or Range arrow
extern bool     WaveCloseOnOppositeTMA=true;//Close a Wave buy on a TMA high and sell on a TMA low
extern string   wmp="-- Wave Trade multiple positions --";
extern string   WaveMultiTradeComment="Wave multi trade";
extern double   WaveMultiTradeLot=0.1;
extern int      WaveMaxMultiTrades=5;//Max no of pending Trades to send with the initial Wave Trade. Zero to disable.
extern int      WaveMultiTakeProfitPips=30;
extern int      WaveMultiStopLossPips=0;
extern bool     WaveMultiMiss100=true;//Don't set a pending on the 100 or 0 if this is enabled
////////////////////////////////////////////////////////////////////////////////////////
extern string   ss3a="--------------------";
extern string   twar="---- Combined Trend and Wavy Line Trading ----";
extern bool     TrendWaveTradingAllowed=true;
extern bool     TrendWaveInstantMarketTrade=true;
extern bool     TrendWavePendingTrade=false;
extern int      TrendWaveMaxTradesAllowed=30;//The maximum trades opened at one time.
extern double   TrendWaveLot=0.1;
extern double   TrendWaveRiskPercent=0;//Set to zero to disable and use TrendWaveLot
extern string   TrendWaveTradeComment="TrendWave trade";
extern int      TrendCandlesLookBack=4;
extern int      WaveCandlesLookBack=3;
extern string   twax="-- TrendWave Trade exits --";
extern int      TrendWaveTakeProfitPips=100;
extern int      TrendWaveStopLossPips=0;
extern bool     TrendWaveCloseOnOppositeArrow=true;//Close a TrendWave Trade on the appearance of an opposite direction Trend or Range arrow
extern bool     TrendWaveCloseOnOppositeTMA=true;//Close a TrendWave buy on a TMA high and sell on a TMA low
extern string   twmp="-- TrendWave Trade multiple positions --";
extern string   TrendWaveMultiTradeComment="TrendWave multi trade";
extern double   TrendWaveMultiTradeLot=0.1;
extern int      TrendWaveMaxMultiTrades=5;//Max no of pending Trades to send with the initial TrendWave Trade. Zero to disable.
extern int      TrendWaveMultiTakeProfitPips=30;
extern int      TrendWaveMultiStopLossPips=0;
extern bool     TrendWaveMultiMiss100=true;//Don't set a pending on the 100 or 0 if this is enabled
////////////////////////////////////////////////////////////////////////////////////////
extern string   sep111="================================================================";
////////////////////////////////////////////////////////////////////////////////////////
extern string   sfs="----SafetyFeature----";
extern int      MinMinutesBetweenTrades=0;
extern int      MinMinutesBetweenTradeOpenClose=0;
////////////////////////////////////////////////////////////////////////////////////////
extern string   sep2a="================================================================";
//Hidden tp/sl inputs.
extern string   hts="----Stealth stop loss and take profit inputs----";
extern int      PipsHiddenFromCriminal=0;//Added to the 'hard' sl and tp and used for closure calculations

extern string   sep7="================================================================";
//CheckTradingTimes. Baluda has provided all the code for this. Mny thanks Paul; you are a star.
extern string   trh            = "----Trading hours----";
extern string   tr1            = "tradingHours is a comma delimited list";
extern string   tr1a="of start and stop times.";
extern string   tr2="Prefix start with '+', stop with '-'";
extern string   tr2a="Use 24H format, local time.";
extern string   tr3="Example: '+07.00,-10.30,+14.15,-16.00'";
extern string   tr3a="Do not leave spaces";
extern string   tr4="Blank input means 24 hour trading.";
extern string   tradingHours="";
////////////////////////////////////////////////////////////////////////////////////////
extern string   sep8a="================================================================";
extern string   fmt="---- For the manual traders ----";
extern bool     UseForTradeManagementOnly=false;
extern bool     UseForSignalsDisplayOnly=false;

extern string   sep8="================================================================";
extern string   bf="----Trading balance filters----";
extern bool     UseZeljko=false;
extern bool     OnlyTradeCurrencyTwice=false;
////////////////////////////////////////////////////////////////////////////////////////
extern string   sep13="================================================================";
extern string   tmm="---- Trade management module ----";
//The Individual Pair as a Basket Closure settings and all its associated code was contributed by magft. It allows us to treat all the trades opened by 
//the pair as a 'basket' with its own tp and sl. Donated by magft. Many thanks Mike.
//Zero values turn these off.
extern string   BS="-- Individual Pair as a Basket Closure settings --";
extern double   BasketCashSl=0.0;
extern double   BasketCashSlPercent=0.00;
extern double   BasketCashTp=0.0;
extern double   BasketCashTpPercent=0;

//Breakeven has to be enabled for JS and TS to work.
extern string   BE="Break even settings";
extern bool     BreakEven=false;
extern int      BreakEvenTargetPips=10;
extern int      BreakEvenTargetProfit=5;
extern bool     PartCloseEnabled=false;
extern double   PartClosePercent=50;//Percentage of the trade lots to close
////////////////////////////////////////////////////////////////////////////////////////
double          BreakEvenPips,BreakEvenProfit;
bool            TradeHasPartClosed=false;
////////////////////////////////////////////////////////////////////////////////////////

extern string   sep14="================================================================";
extern string   JSL="Jumping stop loss settings";
extern bool     JumpingStop=false;
extern int      JumpingStopTargetPips=10;
extern bool     AddBEP=true;
////////////////////////////////////////////////////////////////////////////////////////
double          JumpingStopPips;
////////////////////////////////////////////////////////////////////////////////////////

extern string   sep15="================================================================";
extern string   cts="----Candlestick jumping stop----";
extern bool     UseCandlestickTrailingStop=false;
extern int      CstTimeFrame=0;//Defaults to current chart
extern int      CstTrailCandles=1;//Defaults to previous candle
extern bool     TrailMustLockInProfit=true;
////////////////////////////////////////////////////////////////////////////////////////
int             OldCstBars;//For candlestick ts
                           ////////////////////////////////////////////////////////////////////////////////////////

extern string   sep16="================================================================";
extern string   TSL="Trailing stop loss settings";
extern bool     TrailingStop=false;
extern int      TrailingStopTargetPips=20;
////////////////////////////////////////////////////////////////////////////////////////
double          TrailingStopPips;
////////////////////////////////////////////////////////////////////////////////////////

//Enhanced screen feedback display code provided by Paul Batchelor (lifesys). Thanks Paul; this is fantastic.
extern string   se52  ="================================================================";
extern string   oad               ="----Odds and ends----";
extern int      ChartRefreshDelaySeconds=60;
extern int      DisplayGapSize    = 30; // if using Comments
// ****************************** added to make screen Text more readable
extern bool     DisplayAsText     = true;  // replaces Comment() with OBJ_LABEL text
extern bool     KeepTextOnTop     = true;//Disable the chart in foreground CrapTx setting so the candles do not obscure the text
extern int      DisplayX          = 50;
extern int      DisplayY          = 0;
extern int      fontSise          = 10;
extern string   fontName          = "Arial";
extern color    colour            = Yellow;
extern double   spacingtweek      = 0.6; // adjustment to reform lines for different font size <!-- s:hi: --><img src=\"{SMILIES_PATH}/hi.gif\" alt=\":hi:\" title=\"hello\" /><!-- s:hi: --> 
Please do not use HGI v 15.08 for the EA it will cause problems, use 15.06..

Cheers :)

Tommaso
Global Prime is the official SHF broker :yahoo:
Searching for Servers and Workstations with individual configuration?
Just PM
:smile: Click here to go to the BoardKnowledgeBase
NOTE: Cookies and JavaScript are required for the using the board, with full functionality
zhengzuodong
Trader
Posts: 59
Joined: Sat Aug 02, 2014 8:38 am

Holy Graily Bob Basics - ask your questions here.

Post by zhengzuodong »

milanese » Tue Jan 06, 2015 11:13 pm wrote:
zhengzuodong » Tue Jan 06, 2015 2:26 pm wrote:Hey, everybody is good.

Since version 2E, 2f, 2G, no any trading? :arrrg: :arrrg: :arrrg:
Who can help me to have a look this setting what is wrong?

Thanks in advance
Please do not use HGI v 15.08 for the EA it will cause problems, use 15.06..

Cheers :)

Tommaso
Thank you very much. Tommaso :good:
Stefan61200

Holy Graily Bob Basics - ask your questions here.

Post by Stefan61200 »

Hi all,

does anybody know what the attached message is trying to tell me?
I am using HGB v2g with HGI v 15.06 on TF 4H OOTB.

Thank you
Stefan
You do not have the required permissions to view the files attached to this post.
Post Reply

Return to “Thingy Bob EA's”