Category Trend  Published on 28/02/2023

MACD with hedge 300%/year

Description

This bot uses MACD with a hedge.

 

 

Parameters:

Label: Label of bot

Initial Lot: Lot to trade

From UTC: Time Bot run at begin

To UTC: Time bot runs at the end; Bot only runs between from and to time

Hedged: Hedge or not

Take Profit Pips

Stop Loss Pips (When don't choose Heged)

Target Profit (Money)

Pip Step: Step for hedging

Lot exponent: Volume change of hedged positions

Stop Bot If DrawDown: Stop bot when drawdown

Max Equity DrawDown %: The percent of drawdown, if more than all positions will be closed

Period: Period of MACD

Long Cycle: Long Cycle of MACD

Short Cycle: Short Cycle of MACD

Signal-line crossover true:if Signal-line crossover false: Zero crossover

Download Demo Version  https://nghia312.gumroad.com/l/gpbow
PRO Version please visit:  https://nghia312.gumroad.com/l/wrvhgz
With source code https://nghia312.gumroad.com/l/hmmqh
Contacts please write to: nghiand.amz@gmail.com


using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using cAlgo.API;
using cAlgo.API.Collections;
using cAlgo.API.Indicators;
using cAlgo.API.Internals;

namespace cAlgo.Robots
{
    [Robot(AccessRights = AccessRights.None)]
    public class MACDBot : Robot
    {
        [Parameter(DefaultValue = "Hello world!")]
        public string Message { get; set; }

        protected override void OnStart()
        {
            // To learn more about cTrader Automate visit our Help Center:
            // https://help.ctrader.com/ctrader-automate
             MessageBox.Show("DownLoad Demo Version  https://nghia312.gumroad.com/l/gpbow"+"\nTo download the " +
                    "PRO Version please visit:  https://nghia312.gumroad.com/l/wrvhgz" + "\n\n " +
                    "with source code https://nghia312.gumroad.com/l/hmmqh \n\n " +
                    " Contacts please write to: nghiand.amz@gmail.com");
                this.Stop();

            Print(Message);
        }

        protected override void OnTick()
        {
            // Handle price updates here
        }

        protected override void OnStop()
        {
            // Handle cBot stop here
        }
    }
}

nghiand.amz's avatar
nghiand.amz

Joined on 06.07.2020

  • Distribution: Paid
  • Language: C#
  • Trading platform: cTrader Automate
  • File name: MACDBot.algo
  • Rating: 0
  • Installs: 258
  • Modified: 27/02/2023 14:17
Comments
Log in to add a comment.
JB
jbh33110 · 6 months ago

I found this bot to have many useful features such as stop loss order management, hedging status, capital management and MACD parameters. These are important factors in creating an effective trading strategy. Providing trial and PRO versions with open source code is a very good idea. This will help customers test and evaluate the bot's features before purchasing. If possible, you can consider adding some features like advanced risk management, such as limit on trade quantity, order size management based on capital, time calculator, etc. This will help increase the bot's flexibility and safety.

KI
kikihilopa · 1 year ago

you are really good.

trap the cat