Category Trend  Published on 14/05/2024

BTCUSD 20m 25000 USD account size (funded) Arian Bot trail for free until 01.06.2024

An update for this algorithm is currently pending moderation. Please revisit this page shortly to access the algorithm's latest version.
Description

Your C# code appears to be a cAlgo robot for trading the BTCUSD pair on a 30-minute timeframe. Here's a breakdown of its functionality:

Parameters:

  • It defines several parameters like Fast MA Period, Slow MA Period, Risk Percentage, ATR Period, Take Profit ATR Multiplier, Stop Loss (in pips), Max Lot Size, and Max Drawdown Percentage. These parameters can be adjusted to customize the robot's behaviour.

Parameters:

you can do the optimization and choose the best timeframe and parameters, below are my suggestions.

  • TimeFrame: 20m
  • Fast MA Period: 13
  • Slow MA Period: 26
  • Risk Percentage:  0.01
  • ATR Period: 9
  • Take Profit ATR Multiplier: 2
  • Stop Loss (pips): 10
  • Max Lot Size: 0.81
  • Max Drawdown Percentage: 2.9 (for funded accounts)

Indicators():

  • FastAndSlowMovingAverage.
  • AverageTrueRange.

Please download the Indicators as well. Check the instruction how to activate the indicators for BTCUSD5 and XAUUSD 5m Bot.

AverageTrueRange algorithms.types.indicator.name | Algorithmic Forex Trading | cTrader Community

FastAndSlowMovingAverage algorithms.types.indicator.name | Algorithmic Forex Trading | cTrader Community

OnTick():

  • It calculates the current equity drawdown percentage and compares it against the maximum allowable drawdown percentage.
  • If the drawdown exceeds the threshold, it closes all open positions, pauses the bot until midnight, and updates the peak equity.

OnBar():

  • It checks if there are any open positions. If there are, it waits for them to close.
  • It calculates the risk amount based on the account balance and risk percentage, and calculates the ATR (Average True Range).
  • It sets the stop loss and take profit levels based on ATR and a multiplier.
  • It calculates the volume in units based on the risk amount and stop loss.

Helper Methods:

  • CloseOpenPositions(): Closes all open positions for the symbol being traded.
  • PauseBotUntilMidnight(): Pauses the bot until midnight by continuously checking the current time.
  • IsOpenPositions(): Checks if there are any open positions for the symbol being traded.
  • IsBullishMarket(): Determines if the market is bullish based on the last bar's open and close prices.
  • IsBearishMarket(): Determines if the market is bearish based on the last bar's open and close prices.
  • CalculateATR(): Calculates the Average True Range based on the provided period.

Overall, this robot follows a trend-following strategy Best strategy and incorporates risk management by adjusting position size based on equity drawdown and ATR. Additionally.

 

any question email me (shapor33@gmail.com) or message me in Telegram: https://t.me/AR_1988_fmm

 

 

 


 


The author decided to hide the source code.
SH
shapor33

Joined on 08.04.2024 Blocked

  • Distribution: Free
  • Language: C#
  • Trading platform: cTrader Automate
  • File name: BTCUSD 20m 25000 account Arian Bot trail user.algo
  • Rating: 0
  • Installs: 281
  • Modified: 14/05/2024 15:12
Comments
Log in to add a comment.
No comments found.