Description
Make the most of your trading opportunities with obot for cTrader!
The Robot is an automated system designed to give you an edge in the financial market. Using the MACD indicator, this robot identifies buying and selling opportunities with precision, allowing you to take advantage of market trends and make informed decisions.
With Robot's flexible configuration parameters, you can adjust the trading volume, set take profit and stop loss levels, and define a maximum spread to suit your trading strategy. In addition, you can effectively manage risk with specific parameters, such as maximum risk per account and maximum drawdown.
Robot constantly monitors market conditions and automatically executes trades when predefined conditions based on the MACD indicator are met. This allows you to take advantage of trading opportunities in a timely manner and without wasting time.
One of the outstanding features of Robot is its stop loss update function. This feature helps you protect your profits and limit your losses by adjusting the stop loss levels of open positions. In addition, the robot ensures that risk conditions are within the set limits before opening new positions, giving you greater security in your trades.
With the ability to trade at specific times of the day, you can set your preferred time window to take advantage of trading opportunities in the market. Whether you prefer to trade during the most volatile hours or at specific times of the day, the Robot adapts to your trading schedule and strategy.
The Robot is a powerful tool that can help you automate your trading and maximize your profits while controlling risk. Take advantage of cTrader's advanced technology and take your trading strategy to the next level with this intelligent and efficient robot.
Don't waste any more time and start using the Robot in cTrader to make smarter and more profitable trading decisions. Download the robot now and discover the unlimited potential of automated trading - make the most of your trading potential!
// -------------------------------------------------------------------------------------------------
//
// This code is a cTrader Automate API example.
//
// This cBot is intended to be used as a sample and does not guarantee any particular outcome or
// profit of any kind. Use it at your own risk.
//
// All changes to this file might be lost on the next application update.
// If you are going to modify this file please make a copy using the "Duplicate" command.
//
// The "Sample RSI cBot" will create a buy order when the Relative Strength Index indicator crosses the level 30,
// and a Sell order when the RSI indicator crosses the level 70. The order is closed be either a Stop Loss, defined in
// the "Stop Loss" parameter, or by the opposite RSI crossing signal (buy orders close when RSI crosses the 70 level
// and sell orders are closed when RSI crosses the 30 level).
//
// The cBot can generate only one Buy or Sell order at any given time.
//
// -------------------------------------------------------------------------------------------------
using cAlgo.API;
using cAlgo.API.Indicators;
namespace cAlgo
{
[Robot(TimeZone = TimeZones.UTC, AccessRights = AccessRights.None)]
public class SampleRSIcBot : Robot
{
[Parameter("Quantity (Lots)", Group = "Volume", DefaultValue = 1, MinValue = 0.01, Step = 0.01)]
public double Quantity { get; set; }
[Parameter("Source", Group = "RSI")]
public DataSeries Source { get; set; }
[Parameter("Periods", Group = "RSI", DefaultValue = 14)]
public int Periods { get; set; }
private RelativeStrengthIndex rsi;
protected override void OnStart()
{
rsi = Indicators.RelativeStrengthIndex(Source, Periods);
}
protected override void OnTick()
{
if (rsi.Result.LastValue < 30)
{
Close(TradeType.Sell);
Open(TradeType.Buy);
}
else if (rsi.Result.LastValue > 70)
{
Close(TradeType.Buy);
Open(TradeType.Sell);
}
}
private void Close(TradeType tradeType)
{
foreach (var position in Positions.FindAll("SampleRSI", SymbolName, tradeType))
ClosePosition(position);
}
private void Open(TradeType tradeType)
{
var position = Positions.Find("SampleRSI", SymbolName, tradeType);
var volumeInUnits = Symbol.QuantityToVolumeInUnits(Quantity);
if (position == null)
ExecuteMarketOrder(tradeType, SymbolName, volumeInUnits, "SampleRSI");
}
}
}
x1379
Joined on 26.08.2020
- Distribution: Paid
- Language: C#
- Trading platform: cTrader Automate
- File name: Sample RSI cBot.algo
- Rating: 0
- Installs: 157
- Modified: 14/06/2023 22:59