Clickalgo Knowledge Center
Return to Website

Smart-Grid Settings Explained

PLEASE NOTE THAT EACH SYMBOL WILL REQUIRE DIFFERENT SETTINGS TO GET THE BEST RESULTS

 

Default Stock Parameters Included

The default parameters that are supplied with the trading robot have not been optimized, they have been manually set as an example, you should be able to adjust them to obtain much better results.

The download contains the default example parameters so that you can start trading, you will need to load them into your trading robot, follow the link below for instructions.

 

 

General Settings

The general settings for the trading system will consist of the symbol & timeframe that you wish to trade with, the adjustable settings are shown together with explanations.

 

smart-grid general

 

Symbol Timeframe

With this trading system changing the timeframe should not make any difference as all the trade entry, exit and risk management happen on each incoming tick of data which is every time there is a price change.

 

Unique Name 

This setting will allow you to run the same multiple symbol instances with different parameter settings at the same time independently. 

 

Isolation Mode

This is a key risk management setting that when set to YES prevents other symbol instances from trading and will only open trades for the same cBot symbol instance. An example would be that the drawdown risk of the account is set to 5% for EURUSD and if another symbol was to open like EURGBP also with a 5% drawdown, this would give an accumulated total DD of 10%. If a trader has many symbol instances being traded then this feature will limit trades to open for a single symbol at any given time, thus keeping the amount of risk in check.

 

Include Buy & Sell

If you choose No, the robot will exclude all trades in the direction specified, having them both set to Yes, will allow the robot to open both Long & Short trades.

 

 

Grid Settings

These are the settings for the actual smart grid.

 

cTrader Smart Grid Settings

 

Initial Quantity (lots)

This is the value that is used when the robot first starts trading or when it is reset using the rules explained below on how position sizing works.

 

Grid Distance (pips)

This is the distance in pips for the grid, so each time the price retraces (x) pips, a new position is opened in the opposite direction to the trend, it is worth noting that the distance is affected by symbol spread and slippage when the order is filled.

TIP: Set the Grid-Distance more than 2 pips, especially if you are running optimization

 

cTrader Smart Grid Position Sizing

 

What Is the Volume Multiplier & How does Position Sizing work?

The volume multiplier is a setting that controls position sizing, the higher the value the higher the returns, but also the higher the potential risk, each time the price retraces the Grid Distance in pips from the previous same side position it opens a new position and multiplies the volume. We use a special formula to calculate the volume for each trade on a price retracement which does not follow the conventional method of a normal Grid-System, using our special formula there are other factors taken into consideration.

  1. The volume of the last position.
  2. If a position has been lost or won.
  3. The number of open positions for the trade direction.
  4. If the open positions are above or below the last entry price.

A formula is applied to all the above values to determine the actual position size of a new trade, this helps reduce losses and increase winners.

 

 

Example

Starting position size is 0.5 lots, the volume multiplier is 1.5, the next position that opens will have a position size of 0.5 x 1.5 = 0.75 lots and the one after that would be 0.75 x 1.5 = 1.12 lots

The volume is reset when a trade loses and only multiplies for winning trades.

 

Will the position size keep multiplying?

The answer is no, the position size will reset back to the starting volume depending on how many positions are open and the last entry price, our in-built formula will help reduce losses.

 

Include lots Limit

If you choose 'YES' then a limit will be set on the maximum lot value (position size) that the robot will open, this is to protect your account.

 

Lot Limit

The is the maximum lot value allowed by the robot when it opens a position using the Lots Exponent value, it defaults to 0.5 and ranges from 0.01 upwards, the decimal values help with smaller account sizes so that a position will never open with a lot size too big for the account, this is very useful for risk management.

 

 

General Protection

We have added some additional risk control features as requested by existing customers to improve the trading system.

 

cTrader Grid-Hedge Protection

 

Stop Loss

All our tests were with no stop loss, this still produced a low drawdown of your cash equity, this trading system uses a unique method to close positions which is when the DiNapoli Stochastic indicator feels that the instrument is oversold or overbought.

If you plan to run the robot with no stop loss then keep an eye on the losing positions, the smart-grid system will only open positions in the direction of the trend so the odds are in your favour that it will continue this way, you can always experiment with the optimal stop loss with optimization.

 

Max Spread (pips)

This is the maximum spread allowed for a symbol before the robot stops opening positions, this is very useful if you have a small grid distance value and when the spread is very high due to low liquidity.

 

Max Slippage (pips)

This is known as the market range in cTrader, slippage refers to the difference between the expected price of a trade and the price at which the trade is actually executed, if the slippage is equal to or above the maximum value set in the robot, no trade will open.

 

Max Losing (buy)

This is the number of Long positions open that are losing, an example would be that the maximum allowed value is 3 then if all 3 positions are losing and in the red, no additional BUY trades are allowed to open until at least one of them goes into profit and is green. This feature is for the cBot instance symbol and not all open positions created by the cBot, so if the symbol was EURUSD and 3 positions were losing, the robot will not open any more BUY EURUSD positions, but it will continue to open SELL positions.

 

Max Losing (sell)

This is the number of Short positions open that are losing, an example would be that the maximum allowed value is 3 then if all 3 positions are losing and in the red, no additional SELL trades are allowed to open until at least one of them goes into profit and is green. This feature is for the cBot instance symbol and not all open positions created by the cBot, so if the symbol was EURUSD and 3 positions were losing, the robot will not open any more SELL EURUSD positions, but it will continue to open BUY positions.

 

The max losing buys and sells feature was requested by traders due to the fact that at the end of a trend cycle if the system had paused trading due to maximum losing trades then it can continue trading in the opposite direction and gain profits to cover the losses.

 

Max Trades Open 

This is the number of positions that are allowed to open at any given time for the symbol you are trading, this will help limit any risk and prevent the robot from opening many unwanted trades. Please note that this is not for all open trades for all symbols, but instead only for the cBot instance symbol being traded.

To reduce risk, it is best to have the max trades open between 1-10 max.

 

 

Take Profit

The robot has a few options to take a fixed or automatic take profit, the automatic take profit is explained above in the section about position sizing.

 

grid hedge take profit

 

Fixed TP (pips)

To use the fixed take profit, you will need to set the Automatic Take Profit to No, the robot's default settings are to use an automatic take profit which is controlled by the core logic.

 

Automatic TP 

If you set this value to No, it will use the value you set for the standard fixed Take Profit and it will not be dynamically repositioned all the time.

 

Average TP 

This is the average take profit when you select Yes to include the use of the Automatic take profit feature above, experiment with different values to get the optimal setting for your symbol.

 

 

Price Level Stop

Price levels are very important as you may wish to set them where you feel a trend may end like at strong support or resistance level, with these settings you can stop the robot from trading and also close all open positions locking in profits.

 

cTrader price level stop

 

Upper Price Level

This is the upper price where the robot will stop or close all trades when the symbol bid price reaches it, the default value is 1000 to prevent the robot from stopping at the start.

 

Lower Price Level

This is the lower price where the robot will stop or close all trades when the symbol bid price reaches it, the default value is 0 to prevent the robot from stopping at the start.

 

Activate Stop?

When the upper or lower price levels are reached this option will stop the cBot instance.

 

Close Positions?

When the symbol bid price reaches the upper or lower price level you can choose to close all open positions.

 

 

Equity Losing Stop

This feature is very useful to prevent you from blowing your account if the system starts to lose too much, you set the value to the amount that you want the cBot instance to stop and close all positions when your account equity including all open losing positions drops to the value you have set.

 

 cTrader Equity Losing Stop

Example

Equity stop set at 500, as soon as your account equity reaches or drops below 500 the robot will stop and all open positions will close. The account equity includes all open trades in negative or positive balance.

 

Activate Stop?

This activates or deactivates the feature that will hard stop the cBot instance for the symbol traded only. 

 

Losing Target

This is the equity losing target, so when your equity drops below this value, all open trades will close and the cBot will stop.

 

Example

Balance stop set at 1000, as soon as the balance of your account is above or reaches 1000 then the robot stops and all open positions will close. There may be open positions that have a negative value that will cause a loss and the final balance to be lower than the pre-set balance stop value.

 

 

Equity Profit Stop

This feature will stop the cBot instance for the symbol being traded and close all open positions so that the end balance on the account matches the equity target value.

 

cTrader Equity Profit Target

 

Activate Stop?

This activates or deactivates the feature that will hard stop the cBot instance for the symbol traded only. 

 

Profit Target

This is the equity profit target, so when your equity reaches this value, all open trades will close and the cBot will stop.

Equity = balance - unrealised Net loss profit + Net profit plus any bonus. 

 

 

Balance Losing Stop

This feature will stop the cBot instance for the symbol being traded and close all open positions when the account balance drops below a set value.

 

cTrader balance losing stop

 

Activate Stop?

This activates or deactivates the feature that will hard stop the cBot instance for the symbol traded only. 

 

Balance Target

This is the balance losing target, so when your account balance reaches this value, all open trades will close and the cBot will stop.

 

 

Drawdown Stop 

This feature will stop trading, stop the robot and close all open positions when your account balance drops below a set percentage %, this protects your account should the markets go against your trades due to high-volatile market events and where the automated system is trading for you while you are not managing them.

 

cTrader Drawdown Stop

 

Draw-down %

The % value of your account balance before the robot hard-stops and closes all your winning and losing positions.

  • Account balance £1000
  • 5% Drawdown stop
  • When all open trades both winning and losing cause a 5% of balance drawdown or £50
  • The robot stops and all open trades close
  • The final balance is £950

 

Activate Stop?

This will stop the cBot instance if set to YES.

 

Close Positions?

This setting will close all open positions, if the activate stop setting above is set to NO, then the system will close all open trades, but continue trading and opening new positions.

 

 

Trading Hours

You are able to specify the hours and trading sessions when the robot will trade, this helps avoid periods of unpredictable market activity, follow the link below for more information. This uses your local PC time, but if you run a backtest it uses the server time UC+0

 

Smart-Grid Trading Hours

 

Trading Starts (hrs)

You can only enter whole numbers from 1 to 23.

 

Trading Stops (hrs)

You can only enter whole numbers from 1 to 23.

 

 

Friday Stop

This feature will stop the robot from opening new positions at a set time on a Friday as well as close all open positions (x) minutes after the robot paused, this is to allow new trades some breathing space to gain some profit before being closed. This uses your local PC time, but if you run a backtest it uses the server time UC+0

 

cTrader Friday Stop

 

Stop Trading

This is the time in hours and minutes to tell the trading robot to stop opening new positions, the format must be hours: minutes, so 16:30 for 4:30 pm.

 

Wait for (minutes)

This is the number of minutes in whole numbers before the Close Open Trades feature closes the trades.

 

Close Open Trades

If this setting is selected as YES then the trading system will wait (x) minutes after the Friday stop time before any open trades are closed.

 

 

Trailing Stop Loss

A trailing stop is a useful feature to use, the take profit target will trigger when the position is gaining (x) pips and also trail behind the price by (x) pips, if the price retraces too far it closes the position and locks in your profit.

 

 ctrader trailing stop

 

Trailing Stop Trigger

This the value in pips when the trailing stop is activated.

 

Trailing Stop Step

This is the value in pips that the take profit target will follow behind the symbol price.

 

 

Break-Even Stop Loss

A break-even stop-loss feature will move your stop loss to a price where there is no longer any financial risk when the position is in profit and winning, there is also an option to add extra pips to gain a locked-in profit.

 

cTrader Smart-Grid Break-even

 

Trigger (Pips)

This is the value in pips when the break-even is activated.

 

Extra (Pips)

This is the value in pips that the stop loss will move to lock in profits.

 

 

Forex News Release Manager

We have included this product for free to allow you to avoid trading during high-impact news events, for more information on how to configure the NRM product, please follow the link below.

 

 

DiNapoli Stochastic Indicator

This version of the DiNapoli Stochastic has a smoother indicator and extra logic to match the curve of the lines to identify possible price reversal that matches a sharp price reversal. This oscillator smoothing method leads to filtering out "noise" in the price movement. It is used in strategies that are oriented to a standard stochastic. The stronger smoothing can lead to the loss of an array of signals. It is recommended to apply any trend indicator for more efficient use of the indicator and its signals filtering.

 

cTrader DiNapoli Filter

 

Include?

You can decide if you want to include this trend indicator or not, if you select no, then it will be the old school grid-hedge with possible large drawdowns.

 

Fast K, Slow K, Slow D

These are the parameter settings for the DiNapoli indicator for the fast and slow stochastics.
 

Cross-Over Distance

This is the distance between the signal and result line when the signal line crosses above or below the result line which identifies a trend reversal.

 

Entry Time-frame

This is the main entry timeframe for the indicator and it will signal bullish or bearish trend signals based on the timeframe.

 

Upper Level

If the indicator signals a bearish trend, the signal line must be above the upper level.

 

Lower Level

If the indicator signals a bullish trend, the signal line must be below the lower level.

 

Include Confirmation?

This is an additional timeframe that can be used with the entry time frame to create a stronger trend signal, if you have the right settings you will achieve a lower drawdown, but also a lower profit, it can be used for non-aggressive trading. Only use this if you are experienced with the settings.

It may be worth noting that the DiNapoli indicator has logic that we do not provide openly to traders, so how it actually works is hidden, it will provide trend signals starting from the first cross-over until the opposite side cross-over.

 

Confirmation Time-frame

This is the confirmation entry timeframe for the indicator and it will signal bullish or bearish trend signals based on the timeframe.

 

Close Positions

This is a very key feature that helps reduce run-away trades when the trend reverses and if you set this to YES then if there are any BUY trades open when the DiNapoli changes from bullish to bearish then all the buy trades will close.

It helps protect your account when a market cycle changes and you have trades open against the new trend.

 

 

Average True Range Indicator

The cTrader average true range (ATR) is a technical analysis indicator that measures market volatility by analysing the complete range of an instrument price for the selected period which was introduced by market technician J. Welles Wilder. 

 

cTrader ATR Filter

 

This setting is an added filter that if selected will only allow trades to open when the WAE indicator identifies a buy or sell opportunity when the average true range price is below the symbol price for a buy signal and above the symbol price for a sell signal.

 

cTrader ATR Filter Settings

 

ATR Time-frame

This allows the use of any timeframe for the ATR indicator, the chart can be 1-minute, but the ATR indicator can be calculated within a 1-hour timeframe.

Please note the best setting is 1-minute and when you create a new cBot instance the timeframe defaults to 1 hour.

 

Period

This is the number of periods used for the calculation, the default value commonly used is 6.

 

MA Type

There are 8-different moving average types to use including the hull.

 

Weight

This is the weight calculation of the indicator.

 

 

Hull Moving Average Indicator

This indicator is very good at identifying trend direction, created by Alan Hull, this type of moving average is extremely fast and helps eliminate lag and improves smoothing.

If this is used with the DiNapoli indicator then it works better with a lower timeframe for entry, 10-minutes is good.

 

cTrader Smart-Grid HMA

 

HmaPeriod

This is the number of periods used for the calculation, the default value commonly used is 21.

 

Entry Timeframe

This is the 1st entry timeframe to use, 1-hour seems to be the optimal value, but experiment with other timeframes depending on the symbol used.

 

Include Confirmation

This is the secondary confirmation timeframe which is optional, this offers multi-timeframe indicator confirmation for the trend.

 

 

Telegram Settings

This automated trading system benefits from using instant Telegram messages directly to a mobile phone, web browser or PC desktop.

 

smart-grid telegram settings

 

Help Finding Bot Token & Chat ID

To help you set up your alerts we provide the Telegram Testing Tool, this will help you configure your email and Telegram settings. 

 

Telegram Test

The Telegram Test setting if set to YES will send a message every time the cBot starts, this is a good way of checking that the messaging service is working.

 

 

Telegram Alerts

The following instant messages are sent to a mobile phone when any one of the events occurs which contain useful information for the event. All the alert events can be turned on or off.

  1. Order submitted
  2. Order Closed
  3. Drawdown stop
  4. Equity profit
  5. Equity loss
  6. Balance loss
  7. Price levels

 

Smart grid Telegram alerts