Can you please explain the issue a bit better? I am not sure what I am looking at.
Best regards,
Panagiotis
I set the lower limit of the day one candle at a time on the D1 timeframe, go to h4 and there is NO SUCH low for this day in the shadows of 4-hour candles. He is 20+ points lower there. The two screenshots show these TWO situations - D1 and h4 with an index line by date.
Can you share better screenshots where we can see the broker, the symbol, the timeframes and the dates?
Please share the code you are using to print these values.
Best regards,
Panagiotis
Hi - see code below. Thanks.
protected override void OnStart() { _macd = Indicators.MacdCrossOver(SlowMAPeriod, FastMAPeriod, SignalLinePeriod); Print("MACD-Analysis started with MACD parameters: Fast MA = {0}, Slow MA = {1}, Signal Line = {2}", FastMAPeriod, SlowMAPeriod, SignalLinePeriod); }
// Check for zero-line crossing if (lastMACD.HasValue) { if ((lastMACD < 0 && macdValue > 0) || (lastMACD > 0 && macdValue < 0)) { // A zero-line crossing occurred ProcessWave(macdValue < 0); } }
lastMACD = macdValue; // Update the last MACD value //Print("Last MACD = " + lastMACD) ;
}
Hi there,
You are printing the _macd.MACD.LastValue which prints the value of the current at the opening of the bar and then you compare it with the MA values of closed bars. The LastValue can change by the time the bar is closed. You should print _macd.MACD.Last(1) instead.
Thank you for reporting this issue. Could you pleasesend us some troubleshooting information the next time this happens? Please paste a link to this discussion inside the text box before you submit it.
Best regards,
Panagiotis
Ok, ho appena seguito la procedura del video e mandato in questo momento la richiesta. Purtroppo nella schermata non c'era il pulsante per essere ricontattato, ma ho scritto in quel messaggio che se ce n'è bisogno mi potete contattare per eventuali ulteriori comunicazioni in merito a questo problema.
If you just want to use cTrader on different devices, you can use workspaces. But if you need the synchronization to happen in real time, this is not possible.
Best regards,
Panagiotis
So If I have ‘drawings’ on a chart in a desktop environment, there is no way to copy that across to another desktop environment (on another computer), even via export/import or something?
Please provide us with more information on how to reproduce this problem. Share your cBot code, cBot parameters, dates and broker and explain to us what you expected to see and what you see instead.
Best regards,
Panagiotis
In this example I use following from the c-trader cbot system: SAMPLE RSI CBOT.
Data ticks: EURUSD 1 HOUR: Optimisation settings: TF 1 hour. Quantity: 1 lot. Source: Close. Periods: min: 5 max 20 and step 1.
Optimisation Criteria: Standard. Max netto profit. Min equity DD (%) and Max winnings trades.
Test period: 30.10.24 - 30.11.24
The system shows: AUTOSELECT THE BEST PASS: = 14. Netto profit: = 2773,72. Trades 27 etc.
Then I import the result and backtest it without changing nothing. Now the netto results shows me just 380,75 + 1 open position = 225,33 (euro)
What do I wrong?
Code:
// ------------------------------------------------------------------------------------------------- // // 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, AddIndicators = true)] 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 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 you just want to use cTrader on different devices, you can use workspaces. But if you need the synchronization to happen in real time, this is not possible.
PanagiotisCharalampous
03 Dec 2024, 10:05
RE: RE: Different timeframes of the same day did not match the Low
ftii said:
Can you share better screenshots where we can see the broker, the symbol, the timeframes and the dates?
@PanagiotisCharalampous