Topics
Replies
rkokerti
25 Aug 2014, 12:35
Two other question. What is less memory / CPU consumig?
1,
if(criterias) { XY[index] = MarketSeries.Close[index]; } else { XY[index] = double.NaN; }
or
RefreshData() if(criterias) { XY[index] = MarketSeries.Close[index]; }
2,
if(criterias) { XY[index] = MarketSeries.Close[index]; } else { XY[index] = double.NaN; }
or
if(criterias) { ChartObjects.DrawText("XY"+index.ToString(),"XY",index,MarketSeries.Close[index],VerticalAlignment.Center,HorizontalAlignment.Center,Colors.Yellow); } else { ChartObjects.RemoveObject("XY"+index.ToString()); }
Thanks in advance!
@rkokerti
rkokerti
29 May 2014, 15:55
Dear Developers,
As you previously said "Even if trading is not possible platform can receive new prices which could produce new bar." OK I accept that, I do not understand why, but it's not important...
Therefore, I need to open the half of the positions by manually. In this case very difficult to set the proper SL/TP levels and set the position sizing.
So, please help me to handle this problem with a sample code.
Thanks in advance!
@rkokerti
rkokerti
08 Apr 2014, 17:46
Hi Forex19!
I have a workaround, maybe it helps you...
[Parameter(DefaultValue = " ")] public string BSA { get; set; }
if(BSA == "B") { // put BUY logic here } if(BSA == "S") { // put SELL logic here } if(BSA == "A") { // put AUTO logic here }
Ok, it is not a drill down field, but you just write the corresponding value into the parameter field and it is works.
@rkokerti
rkokerti
25 Aug 2014, 17:22
I'm sorry, but not you are the developer of cAlgo?
Who can tell me, what is the best solution for Indicator optimization?
@rkokerti