
Topics
Replies
PanagiotisCharalampous
22 Nov 2019, 08:46
Hi Samuel,
This happens because you are using the actual price as a stop loss. Stop loss should be set in pips instead.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
22 Nov 2019, 08:38
Hi chernish2,
You can save it as a default template.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
22 Nov 2019, 08:35
Hi Robert,
There is no such feature or plans at the moment.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
21 Nov 2019, 16:23
( Updated at: 21 Dec 2023, 09:21 )
RE: RE:
robert.vanderlaan said:
Spotware said:
Dear Trader,
The Trailing Stop Loss now resides on the server, it works when cTrader is closed. You can apply it when creating an order. It has also been simplified, please enter the number of pips it should trail the spot price for, and it will move every pip.
Hi,
Are there any plans to have actual settings for the trailing SL, separate from the regular SL (as the whole point is with this,
as somebody explained in their example. So the trailing SL gets triggered once the regular SL price or % or pips change is hit)?
Right now, you have trailing giant stoploss at the size of your regular stoploss as there's only 1 stoploss setting..
Hi Robert,
We do not have such plans at the moment.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
21 Nov 2019, 14:33
( Updated at: 21 Dec 2023, 09:21 )
Hi Eduardo_Cerejo,
Right click on your chart, go to Viewing Options > Deal Map and uncheck it. See below
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
21 Nov 2019, 12:01
Hi Jan,
See the example below
// ------------------------------------------------------------------------------------------------- // // This robot 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 // // The "Trailing Stop Loss Sample" Robot places a Buy or Sell Market order according to user input. // When the order is filled it implements trailing stop loss. // // ------------------------------------------------------------------------------------------------- using System; using System.Linq; using cAlgo.API; using cAlgo.API.Indicators; using cAlgo.API.Internals; using cAlgo.Indicators; namespace cAlgo { [Robot(TimeZone = TimeZones.UTC, AccessRights = AccessRights.None)] public class TrailingStopLossSample : Robot { [Parameter("Volume", DefaultValue = 1000)] public int Volume { get; set; } [Parameter("Buy")] public bool Buy { get; set; } [Parameter("Stop Loss", DefaultValue = 5)] public double StopLoss { get; set; } [Parameter("Trigger When Gaining", DefaultValue = 1)] public double TriggerWhenGaining { get; set; } [Parameter("Trailing Stop Loss Distance", DefaultValue = 1)] public double TrailingStopLossDistance { get; set; } [Parameter("Step (pips)", DefaultValue = 5)] public double Step { get; set; } private double _highestGain; private bool _isTrailing; protected override void OnStart() { //Execute a market order based on the direction parameter ExecuteMarketOrder(Buy ? TradeType.Buy : TradeType.Sell, Symbol, Volume, "SampleTrailing", StopLoss, null); //Set the position's highest gain in pips _highestGain = Positions[0].Pips; } protected override void OnTick() { var position = Positions.Find("SampleTrailing"); if (position == null) { Stop(); return; } //If the trigger is reached, the robot starts trailing if (position.Pips >= TriggerWhenGaining) { //Based on the position's direction, we calculate the new stop loss price and we modify the position if (position.TradeType == TradeType.Buy) { var newSLprice = Symbol.Ask - (Symbol.PipSize * TrailingStopLossDistance); if (newSLprice > position.StopLoss) { ModifyPosition(position, newSLprice, null); } } else { var newSLprice = Symbol.Bid + (Symbol.PipSize * TrailingStopLossDistance); if (newSLprice < position.StopLoss) { ModifyPosition(position, newSLprice, null); } } TriggerWhenGaining += Step; } } protected override void OnStop() { // Put your deinitialization logic here } } }
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
21 Nov 2019, 10:21
Hi Ton,
Are there any steps to reproduce this behavior?
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
21 Nov 2019, 10:09
Hi taha.benbrahim.ic,
Renko bars are not available via MarketData at the moment.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
21 Nov 2019, 08:40
Hi Samuel,
Why do you think is wrong. What did you expect to get and what did you get?
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
21 Nov 2019, 08:32
( Updated at: 23 Jan 2024, 13:14 )
Hi brunoreiz14,
Thanks for posting in our forum. You can find detailed instructions on how to install custom indicators here. If you are looking for a Weis Wave indicator there is one [here].
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
20 Nov 2019, 14:13
Hi FireMyst,
Shouldn't it be flipped when the close price passes through and not the high/low?
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
20 Nov 2019, 14:11
Hi sifneosfx,
Maybe because History does not contain positions but HistoricalTrade items.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
20 Nov 2019, 12:50
Hi ctid246422,
I am not annoyed, I just missed that part of the question. Levels in overlaying indicators do not actually do anything. They will be removed in a future update.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
20 Nov 2019, 08:44
Hi ctid1526859,
We will make noise about it don't worry :) You can also join our recently laucnhed Telegram Group to stay tuned with latest news.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
20 Nov 2019, 08:32
Hi ctid1526859,
Before Christmas. I hope this is what you would like hear :).
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
19 Nov 2019, 10:41
Hi RayAdam,
We would appreciate a video demonstrating this behavior. Please send it to community@spotware.com.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
19 Nov 2019, 10:13
Hi Andrii,
We will but we do not have an ETA for this yet.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
19 Nov 2019, 09:46
Hi Vivek,
We plan to add more functionality in the API in 3.7 that will allow you to get more history for Market Series.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
19 Nov 2019, 09:04
Hi ctid246422,
You can find instructions on how to create an Indicator here which is an almost identical process to creating a cBot. This is the reply to your query on how to use the code you have found. You can use that code and build an indicator based on the instructions given in the link.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
22 Nov 2019, 08:50
Hi all,
This is coming in 3.7. Check here.
Best Regards,
Panagiotis
@PanagiotisCharalampous