Current Path : /www/sites/www.coderblog.in/index/
Url:

NameSizeOptions
App_DataDIRnone
backupDIRnone
cgi-binDIRnone
cssDIRnone
imgDIRnone
metaDIRnone
wp-adminDIRnone
wp-contentDIRnone
wp-includesDIRnone
.htaccess3.35 KBDEL
.htaccess.bk1.84 KBDEL
404.html0.13 KBDEL
ads.txt1.07 KBDEL
favicon.ico2.19 KBDEL
index.php0.40 KBDEL
license.txt19.44 KBDEL
php.ini0.58 KBDEL
readme.html7.25 KBDEL
service.php0.00 KBDEL
web.config2.87 KBDEL
wp-activate.php7.21 KBDEL
wp-blog-header.php1.21 KBDEL
wp-comments-post.php2.27 KBDEL
wp-config-sample.php3.26 KBDEL
wp-config.php2.98 KBDEL
wp-cron.php5.49 KBDEL
wp-links-opml.php2.44 KBDEL
wp-load.php3.84 KBDEL
wp-login.php50.21 KBDEL
wp-mail.php8.52 KBDEL
wp-settings.php29.38 KBDEL
wp-signup.php33.71 KBDEL
wp-trackback.php4.98 KBDEL
xmlrpc.php3.13 KBDEL
Indicators – Coder Blog https://www.coderblog.in Join the coding revolution! Learn, share, and grow together! Sat, 22 Nov 2025 14:19:47 +0000 en-US hourly 1 https://wordpress.org/?v=6.8.1 PinBar detector for cTrader https://www.coderblog.in/2021/03/pinbar-detector-for-ctrader/ https://www.coderblog.in/2021/03/pinbar-detector-for-ctrader/#comments Sun, 14 Mar 2021 15:09:46 +0000 https://www.coderblog.in/?p=504 This is a PinBar detector indicator and I convert from the MT4 version (not convert by auto online tool)  so

<p>The post PinBar detector for cTrader first appeared on Coder Blog.</p>

]]>
This is a PinBar detector indicator and I convert from the MT4 version (not convert by auto online tool) 

so you can also go to the below line for detail description:

https://www.earnforex.com/metatrader-indicators/Pinbar-Detector/

Pinbar Detector is an indicator that tries to detect Pinbars (also known as “Pin-bar” or “Pin bar”) and marks them by placing a “smiling face” symbol below the bullish Pinbars and above the bearish Pinbars. It is a pure price action indicator, which is not using any standard technical indicators in its code. The configuration of Pinbar detection can be done via the indicator’s input parameters. Pinbar Detector can issue platform alerts and email alerts on detection. The indicator is available both for MT4 and MT5 versions of the trading platform.

Support parameters:

Input parameters

  • CountBars (default = 0) — the maximum number of bars, on which to detect the pinbars. 0 = all.
  • DisplayDistance (default = 5) — the distance from the candles to the pinbar “smiling face” symbols.
  • UseAlerts (default = true) — tells the indicator to issue platform alert with sound on Pinbar detection.
  • UseEmailAlerts (default = false) — tells the indicator to issue an email alert on Pinbar detection. Email should be properly configured in MetaTrader via Tools->Options->Email.
  • UseCustomSettings (default = false) — tells the indicator to use custom Pinbar detection parameters described below.
  • CustomMaxNoseBodySize (default = 0.33) — maximum allowed body/length ratio for the Nose bar.
    Maximum Nose body size relative to its length
  • CustomNoseBodyPosition (default = 0.4) — Nose body should be positioned in the top (bottom for bearish pattern) part of the Nose bar.
    Nose body position inside its own candle
  • CustomLeftEyeOppositeDirection (default = true) — tells the indicator that the Left Eye bar should be bearish for bullish Pinbar, and bullish for bearish Pinbar.
    Is Left Eye candle opposite to the pattern's direction?
  • CustomNoseSameDirection (default = true) — tells the indicator that the Nose bar should be of the same direction as the pattern itself.
    Is Nose candle in the same direction as the pattern itself?
  • CustomNoseBodyInsideLeftEyeBody (default = false) — tells the indicator that the Nose body should be inside the Left Eye body.
    Is Nose body inside Left Eye body?
  • CustomLeftEyeMinBodySize (default = 0.1) — minimum size of the Left Eye body relative to the bar length.
    Minimum Left Eye body size relative to its candle length
  • CustomNoseProtruding (default = 0.5) — minimum protrusion of the Nose bar relative to the bar length.
    Minimum protrusion of the Nose candle above the high of the Left Eye candle relative to Nose candle length
  • CustomNoseBodyToLeftEyeBody (default = 1) — maximum size of the Nose body relative to the Left eye body.
    Maximum ratio between Nose candle body and Left Eye candle body
  • CustomNoseLengthToLeftEyeLength (default = 0) — minimum Nose length relative to the Left Eye length.
    Minimum ratio of Nose candle length to the Left Eye candle length
  • CustomLeftEyeDepth (default = 0.2) — minimum depth of the Left Eye relative to its length. Depth is length of the part of the bar behind the Nose.
    Minimum difference between Nose low and Left Eye low relative to Left Eye candle length

Example:

Loading

<p>The post PinBar detector for cTrader first appeared on Coder Blog.</p>

]]>
https://www.coderblog.in/2021/03/pinbar-detector-for-ctrader/feed/ 14
Risk and reward management indicator for cTrader https://www.coderblog.in/2021/02/risk-and-reward-management-indicator-for-ctrader/ https://www.coderblog.in/2021/02/risk-and-reward-management-indicator-for-ctrader/#comments Mon, 01 Feb 2021 00:51:11 +0000 https://www.coderblog.in/?p=339 You have to do the risk and reward management for each trading, otherwise you will difficult to win

<p>The post Risk and reward management indicator for cTrader first appeared on Coder Blog.</p>

]]>
You have to do the risk and reward management for each trading, otherwise you will difficult to win and control your money in the market! You can set the stop-loss and take-profit in cTrader as below:

This is really better than MT4 & MT5, it will auto calculate the risk money by stop loss value, and you can also set the take profit amount! But this is still not convenient enough, I think if there is a visual operation for that will be great!

For example, you can drag & drop the stop-loss and take-profit line before you open order, and it will auto calculate the risk-reward rate or you can set the risk-reward for take-profit! That’s means you can easy to drag the stop loss to the support or resistance level, this will be very helpful for control and manage your money! Ok, I will let you know what an indicator can help you to do that!

I created an indicator for risk-reward management, you can easy to set the stop loss and take profit what you want, you also can drag the SL & TP line to set the value:

As you can see in the capture, the blue line is the entry price, green is the take profit price, and red is the stop-loss price. There are 4 order type buttons as below :

When you open a “Buy” or “Sell” order, you can drag the blue line, it will auto-update base on the Ask or Bid price, but if you want to open a “Buy Stop” or “Sell Stop” order, you can drag the blue line for your entry price level.

By default, all of the values will auto-update base on the current entry price, but if you want to change one of them, just edit it, and you will see an edit button change to green:

After you edit the value, click the green edit button, it will calculate other related values. For example, when you change the risk amount, it will also calculate the volumes to fulfill your amount, so that you can control how many amounts will you lose in this trade!

You can set to use the fix amount or percentage for the risk amount, if check “Use Percentage” button, it will base on your account balance to calculate the risk and update the volumes.

There are some parameters can be set:

Panel algnment: Set the default position of the panel

Style Settings: Set the stop-loss, take-profit and entry price line’s color

RS Management:

  1. Default Volumes: default volumes when open the indicator
  2. Risk Amount: default risk amount when open the indicator
  3. Default StopLoss: default stop-loss pips when open the indicator
  4. Default RS: default risk and reward rate when open the indicator

But this is still an indicator, so it can’t open order, if you want to open the order, you can take a look the cBot version.

In the end, this indicator is not free, I only want to charge a small fee so that I can create more better indicator or cBot in the future, but you can download it with 14 days free trial! So, if you like it, please purchase it, thanks for your support 😄

Please go to below for pursase:

Loading

<p>The post Risk and reward management indicator for cTrader first appeared on Coder Blog.</p>

]]>
https://www.coderblog.in/2021/02/risk-and-reward-management-indicator-for-ctrader/feed/ 10
cTrader indicator for showing the trading information https://www.coderblog.in/2021/01/ctrader-indicator-for-showing-the-trading-information/ https://www.coderblog.in/2021/01/ctrader-indicator-for-showing-the-trading-information/#comments Tue, 19 Jan 2021 09:19:43 +0000 https://www.coderblog.in/?p=326 I just created a cTrader indicator (base on this article) to display the trading information in a panel

<p>The post cTrader indicator for showing the trading information first appeared on Coder Blog.</p>

]]>
I just created a cTrader indicator (base on this article) to display the trading information in a panel

You can display the trading and account information in this panel:

1. Set to display the period data (base on months) for total trades and success rate

2. Set to display the account information (e.g balance, equity, net profit..)

3. Set to display margin information (e.g leverage, used margin, free margin, margin level…)

4. Can hide and show the panel

And you can set the parameters as below

1. Set the panel position with vertical and horizontal

2. Default to Show:  whether default to show or hide

3. Show Trading Info: whether to show the trading info panel

4. Show Account Info: whether to show the account info panel

5. Show Margin Info: whether to show the margin info panel

6. Data of Months: how many recent months of data do you want to show (e.g 3 for recent 3 months data, 0 will show all of the history data)

Click here to download!

Loading

<p>The post cTrader indicator for showing the trading information first appeared on Coder Blog.</p>

]]>
https://www.coderblog.in/2021/01/ctrader-indicator-for-showing-the-trading-information/feed/ 10