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.

Camarilla Pivot as Trailing Stop Loss – Amibroker AFL Code

44 sec read

Here is an interesting trading system i would like to share. Generally people use Camarilla as Pivot Point levels for their intraday trading. How about using Camarilla Pivot as Trailing Stop for positional trading. We build this interesting trading system (Prototype) using the concept limit order backtesting. It is a simple long/short breakout trading system with no optimization variables.

Camrilla Pivot as TSL

 

The Buy/Sell rules are shown below

1)Measure Reference High for Buy Signal – i.e High when the Candle Closes above Camarilla Pivot.
2)Buy on Intraday any time if the price crosses Reference High on Intraday basis

1)Measure Reference Low for Short Signal – i.e Low when the Candle Closes below Camarilla Pivot.
2)Short on Intraday any time if the price crosses Reference low on Intraday basis

So if any sharp spike is coming in and that reference high/low are not taken out then the system will remove such unwanted signals.

Following Video tutorial explains how the Camarilla as Pivot Point Strategy Functions

Camarilla Pivot as Trailing Stop Loss – Amibroker AFL Code

https://gist.github.com/93600fae4b9ca4071228

Download Camarilla Pivot as Trailing Stops

Preferred Timeframe : 15min/Hourly

Strategy is backtestable!

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

7 Replies to “Camarilla Pivot as Trailing Stop Loss – Amibroker AFL…”

  1. Hi Rajandaran,
    The code is really useful. Thanks a lot for posting it. I require some afl code through which we can trace multibagger stocks from the nse scrips. Can you plz share me the code and send it to my email id.

  2. Hello Rakendra,
    Please help me on setting pareters for back testing a strategy
    My capital is 50k and I will trade only 1 lot of niftyfo at a time and I don’t want to reinvest profit gained , my broker is angel trade
    Kindly help
    Thank you

  3. Rajandran, While backtesting futures on continuous quotes, how do you take into account the contract expiry?

  4. Hi Rajandran

    Nice AFL and regular using i am supertrend 4.0 Thanks for your support . Please help me I want to add hdfcbankd and icici bank two scrips in single chart window amibroker. Getting no idea on google also. will you please help for it .

    ashok joshi

  5. hi there, nice content!

    just a thought:

    in the code snippet below:
    Buy = ibsignal and H>buylimitprice;
    Short = issignal and L lower low than your buy price, (someone is paying LESS than you, and you can know for sure you did execute yours, because you want to buy paying MORE)
    short -> higher high than your short price (someone is paying MORE than you, and you can know for sure you did execute yours, because you want to sell for LESS than that)

Leave a Reply

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