Rajandran R Founder of Marketcalls and Co-Founder Algomojo. Full-Time Derivative Trader. Expert in Designing Trading Systems (Amibroker, Ninjatrader, Metatrader, Python, Pinescript). Trading the markets since 2006. Mentoring Traders on Trading System Designing, Market Profile, Orderflow and Trade Automation.

CodeSnippets : Condition based Gradient Vertical Fill in Amibroker

25 sec read

Here is a simple Amibroker tutorial to build a good looking trading system. Just have a look into the charts provided below where the buy signals are represented by Red and Black blended gradients and the sell signals are represented by Pale Green and Black blended colour gradients.

Gradient Buy or Sell

 
If you want to seperate your charts into Zones (For example Bull Zone or Bear Zone) then the functions colorBlend and the parameter styleGradient comes handly. Here is a below example which can be mapped with any trading system. Just copy the codes and paste to your trading system afl below the Buy/Sell parameters. And you are done.

https://gist.github.com/b9a89821937ea09968d7

Rajandran R Founder of Marketcalls and Co-Founder Algomojo. Full-Time Derivative Trader. Expert in Designing Trading Systems (Amibroker, Ninjatrader, Metatrader, Python, Pinescript). Trading the markets since 2006. Mentoring Traders on Trading System Designing, Market Profile, Orderflow and Trade Automation.

Algomojo Index Straddle/Strangle Execution Module with Intraday Stoploss

This tutorial focus on how to automate your index straddle/strangle strategy with intraday stop-loss levels with time-based entry and exits using Algomojo Platform and...
Rajandran R
7 min read

Learn How to Login into Algomojo Account using Amibroker

In the last tutorial, we learn how to automate the algomojo login process and in this video tutorial, we are going to learn with...
Rajandran R
1 min read

Amibroker Execution Module – Hedged Index Futures for Directional…

In the last tutorial, we learn the importance of Hedging Futures Position with OTM Options for Reduced Margin. This tutorial focus on how to...
Rajandran R
14 min read

5 Replies to “CodeSnippets : Condition based Gradient Vertical Fill in Amibroker”

  1. SIR,CAN I GET

    ibuy = Flip(Buy,Sell);
    isell= Flip(Sell,Buy);

    Plot(ibuy, “”, ColorBlend( colorPaleGreen, colorBlack ), styleGradient | styleHistogram | styleOwnScale );
    Plot(isell, “”, ColorBlend( colorred, colorBlack ), styleGradient | styleHistogram | styleOwnScale );
    FOR METATRADER 4 PLEASE KINDLY DO THE NEEDFUL.

  2. Hi Raj,
    Is this method used for trailing stop The trailing stop will be equal to TS and all other stops in this article will be expressed as a percentage of the average body size of the last five candlesticks (high-low) in the current chart.

    Was reading this article
    https://www.mql5.com/en/articles/442

Leave a Reply

Get Notifications, Alerts on Market Updates, Trading Tools, Automation & More