MA TYPE PARAMETERS IN THE CLOUD
22 Oct 2024, 05:37
Hi. I am having problems, selecting the MA TYPE when running my bot in the cloud.
The MA TYPE works when local. But in the cloud it only shows numbers from 0 to 7. Which I thought were the corresponding positions for the written parameters. But even if.it was. I does not select any other number only 0.
using cAlgo.API; using cAlgo.API.Indicators; using System.Collections.Generic; using System;
namespace cAlgo.Robots { public static class MathUtils { public static double Max(double a, double b) { return a > b ? a : b; }
public static double Min(double a, double b) { return a < b ? a : b; } }
protected override void OnBarClosed() { // Find positions for this bot by label and check if maximum open orders limit is reached var botPositions = Positions.FindAll(Label); if (botPositions.Length >= MaxOpenOrders) { Print("Maximum open orders reached, skipping trade."); return; }
var currentPrice = Symbol.Bid; var bollingerBottom = _bollingerBands.Bottom.Last(0); var bollingerTop = _bollingerBands.Top.Last(0); var rsiCurrentValue = _rsi.Result.Last(0); var adxValue = _adx.ADX.Last(0);
Print("ADX Value: ", adxValue);
if (adxValue > AdxThreshold) { Print("Market is trending, skipping trade entry."); return; }
TradeType? tradeTypeToExecute = null;
if (Bars.LowPrices.Last(0) <= bollingerBottom && Bars.LowPrices.Last(1) > bollingerBottom) { if (rsiCurrentValue < RsiOversold) { tradeTypeToExecute = TradeType.Buy; } } else if (Bars.HighPrices.Last(0) >= bollingerTop && Bars.HighPrices.Last(1) < bollingerTop) { if (rsiCurrentValue > RsiOverbought) { tradeTypeToExecute = TradeType.Sell; } }
GauchoHood
23 Oct 2024, 16:52
( Updated at: 24 Oct 2024, 05:11 )
RE: MA TYPE PARAMETERS IN THE CLOUD
PanagiotisCharalampous said:
Hi there,
I cannot reproduce any problem. Can you share screenshots demonstrating this issue?
Best regards,
Panagiotis
As you can see. In the Cloud. The MA TYPES, Simple, triangular, hull, etc. Can not be selected.
What do you mean, when you said you found no error? Are the MA TYPE SHOWING in the cloud for you? Can you actually select them? Could you share a screen shot? Many thanks PANAGIOTIS!
I cannot reproduce any problem. Can you share screenshots demonstrating this issue?
Best regards,
Panagiotis
As you can see. In the Cloud. The MA TYPES, Simple, triangular, hull, etc. Can not be selected.
What do you mean, when you said you found no error? Are the MA TYPE SHOWING in the cloud for you? Can you actually select them? Could you share a screen shot? Many thanks PANAGIOTIS!
I cannot reproduce any problem. Can you share screenshots demonstrating this issue?
Best regards,
Panagiotis
As you can see. In the Cloud. The MA TYPES, Simple, triangular, hull, etc. Can not be selected.
What do you mean, when you said you found no error? Are the MA TYPE SHOWING in the cloud for you? Can you actually select them? Could you share a screen shot? Many thanks PANAGIOTIS!
GauchoHood said: Wow, this is Crazy. Any Clues? I use different computers. A Mcbook at work and a PC at Home. And I cant see the option in either of them. Please help. My strategy really depends on it. Many thanks
I cannot reproduce any problem. Can you share screenshots demonstrating this issue?
Best regards,
Panagiotis
As you can see. In the Cloud. The MA TYPES, Simple, triangular, hull, etc. Can not be selected.
What do you mean, when you said you found no error? Are the MA TYPE SHOWING in the cloud for you? Can you actually select them? Could you share a screen shot? Many thanks PANAGIOTIS!
No clues unfortunately. Can you record a video demonstrating the whole UI and the entire process of adding an instance and reproducing the issue? Maybe it can provide some information we are missing
No clues unfortunately. Can you record a video demonstrating the whole UI and the entire process of adding an instance and reproducing the issue? Maybe it can provide some information we are missing
Hi Panagiotis, hope you are well. Look. I need help to code an increase with the lotsize while my position progresses. For example, when 2 pips positive, double the lot. But the Chatgpt is saying it is not possible to increase Lotsize in Ctrader. Although, we have a button on Ctrader that do Just that, Double the.position size.
No clues unfortunately. Can you record a video demonstrating the whole UI and the entire process of adding an instance and reproducing the issue? Maybe it can provide some information we are missing
Hi Panagiotis, hope you are well. Look. I need help to code an increase with the lotsize while my position progresses. For example, when 2 pips positive, double the lot. But the Chatgpt is saying it is not possible to increase Lotsize in Ctrader. Although, we have a button on Ctrader that do Just that, Double the.position size.
Can you help me please
Hi there,
Please create a separate thread with your question and make it more specific. Tell me what information is missing and what is stopping you from implementing this yourself so that I can help you.
PanagiotisCharalampous
22 Oct 2024, 08:34
Hi there,
I cannot reproduce any problem. Can you share screenshots demonstrating this issue?
Best regards,
Panagiotis
@PanagiotisCharalampous