Category Trend  Published on 26/03/2023

Scanner Berserker Capital

Description

Scanner Berserker Capital

This code was created by Berserker Capital
This cBot is a directional logarithmic Scanner based on the bullish and bearish trends of institutionalized traders (bankers and the government) and it is to be applied on scalping. LEGAL WARNING: use it at your own risk.
The changes without prior notice of this algorithm will be caused by the addition of variables indexed on multiple temporalities, since this work is focused on controlling and predicting time, volume and the direction of tendencies.
If you want to copy or modify my work, I’d appreciate you share it with me and maybe, together we´ll go far.
Berserker Capital is here to change Trading, follow me and participate.

If you require the complete code the price is three digits: contact me and I will give you the PayPal link: fzmetaberserker@gmail.com


// -------------------------------------------------------------------------------------------------
//
//    This code was created by Berserker Capital.
//
//    This cBot is a directional logarithmic Scanner based on the bullish and bearish 
//    trends of institutionalized traders (bankers and the government) and it is to be applied on scalping. 
//    LEGAL WARNING: use it at your own risk. 
//    
//    The changes without prior notice of this algorithm will be caused by the addition of variables 
//    indexed on multiple temporalities, since this work is focused on controlling and predicting 
//    time, volume and the direction of tendencies. 
//    
//    If you want to copy or modify my work, I’d appreciate you share it with me and maybe, together we´ll go far. 
//   
//    Berserker Capital is here to change Trading, follow me and participate.
//    
//    :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
//
//    Este codigo fue creado por Berserker Capital.
//
//    Este cBot es un Scanner direccional logaritmico, basando en el movimiento alcista o bajista 
//    de Traders Institucionales (Banqueros y Gobierno), para su aplicaión en scalping,
//    AVISO LEGAL uselo bajo su propio riesgo.
//    
//    Los cambios sin previo aviso de este algoritmo serán causados por la adicion de variables
//    indexadas en multiples temporalidades, ya que este trabajo tiene el enfoque de controlar y predecir
//    el tiempo, el volumen y direccion de tendencias.
//
//    Si deseas copiar o modificar mi trabajo, agradeceré que me lo compartas y tal vez juntos llegemos más lejos.
//
//    Berserker Capital llego para cambiar el Trading, sigueme y participa.
// -------------------------------------------------------------------------------------------------

using cAlgo.API;
using cAlgo.API.Indicators;

namespace cAlgo.Robots
{
    // Este es un Scanner temporal logaritmico.
    [Robot(TimeZone = TimeZones.UTC, AccessRights = AccessRights.None)]
    public class AverageDirectionalMovementIndexRatingSample : Robot
    {
        private double _volumeInUnits;

        private AverageDirectionalMovementIndexRating _averageDirectionalMovementIndexRating;

        [Parameter("Volume (Lots)", DefaultValue = 5.00)]
        public double VolumeInLots { get; set; }

        [Parameter("Stop Loss (Pips)", DefaultValue = 10)]
        public double StopLossInPips { get; set; }

        [Parameter("Take Profit (Pips)", DefaultValue = 30)]
        public double TakeProfitInPips { get; set; }

        [Parameter("Label", DefaultValue = "Scanner Berserker")]
        public string Label { get; set; }

        public Position[] BotPositions
        {
            get
            {
                return Positions.FindAll(Label);
            }
        }

        protected override void OnStart()
        {
            _volumeInUnits = Symbol.QuantityToVolumeInUnits(VolumeInLots);

            _averageDirectionalMovementIndexRating = Indicators.AverageDirectionalMovementIndexRating(20);
        }

        protected override void OnBar()
        {
            if (_averageDirectionalMovementIndexRating.ADXR.Last(1) < 25) return;

            if (_averageDirectionalMovementIndexRating.DIPlus.Last(1) > _averageDirectionalMovementIndexRating.DIMinus.Last(1) && _averageDirectionalMovementIndexRating.DIPlus.Last(2) <= _averageDirectionalMovementIndexRating.DIMinus.Last(2))
            {
                ClosePositions(TradeType.Sell);

                ExecuteMarketOrder(TradeType.Buy, SymbolName, _volumeInUnits, Label, StopLossInPips, TakeProfitInPips);
            }
            else if (_averageDirectionalMovementIndexRating.DIPlus.Last(1) < _averageDirectionalMovementIndexRating.DIMinus.Last(1) && _averageDirectionalMovementIndexRating.DIPlus.Last(2) >= _averageDirectionalMovementIndexRating.DIMinus.Last(2))
            {
                ClosePositions(TradeType.Buy);

                ExecuteMarketOrder(TradeType.Sell, SymbolName, _volumeInUnits, Label, StopLossInPips, TakeProfitInPips);
            }
        }

        private void ClosePositions(TradeType tradeType)
        {
            foreach (var position in BotPositions)
            {
                if (position.TradeType != tradeType) continue;

                ClosePosition(position);
            }
        }
    }
}


berserkercapital's avatar
berserkercapital

Joined on 02.03.2023

  • Distribution: Paid
  • Language: C#
  • Trading platform: cTrader Automate
  • File name: Scanner Berserker Capital.algo
  • Rating: 0
  • Installs: 251
  • Modified: 04/03/2023 21:49
Comments
Log in to add a comment.
berserkercapital's avatar
berserkercapital · 1 year ago

 

Sure, we can talk and you can contact me if you have any questions.

Berserker Capital.

shane.scott.pub's avatar
shane.scott.pub · 1 year ago

Hey bro. I'm an algo writer. I will test and if I see the potential for my use-case then I will be in contact. In particular, I am looking to revise some of my own algos to run on lower timeframes(or assist on a public domain codebase). Can I contact you if I have questions on the codebase etc?  This is me https://www.facebook.com/shane.scott.uk/.  I'm a senior .net core dev;