Replies

k_baghyan
22 Mar 2022, 11:08

[Closed] - have code (written and tested)already.


@k_baghyan

k_baghyan
17 Mar 2022, 10:27

Hi amusleh

Thanks, will check.


@k_baghyan

k_baghyan
05 Oct 2017, 13:56

Hi Panagiotis,

Thank You for great support.

Karen.


@k_baghyan

k_baghyan
03 Oct 2017, 17:38

Hi Panagiotis,

Thank You for quick reply.

Bot from built-in sets of cAlgo - Simple Martingale cBot - there are also use  position.Quantity(Position interface) - this is just for example

Indicator is developed by me(I am software developer)

from Indicator code:

            foreach (var position in Positions)
            {
                if (position.TradeType == TradeType.Buy && position.SymbolCode == Symbol.Code)
                {
                    Total_Buy_Trades++;
                    Total_Buy_Price += position.EntryPrice * position.Quantity;
                    Total_Buy_Size += position.Quantity;
                    Buy_Profit += position.NetProfit;
                }
                else if (position.TradeType == TradeType.Sell && position.SymbolCode == Symbol.Code)
                {
                    Total_Sell_Trades++;
                    Total_Sell_Price += position.EntryPrice * position.Quantity;
                    Total_Sell_Size += position.Quantity;
                    Sell_Profit += position.NetProfit;
                }
            }

 

Broker: Kawase

In mini lots allowed "mode" both Bot and Indicator not a work due to position.Quantity return 0(zero)...

But for account with min contract size 1 lot Bot&Indicator work correctly.

Thanks,

Karen.

 


@k_baghyan