SaifBD
SaifBD's avatar

Info

Username:SaifBD
Name:SaifBD
Member since: 05 Jan 2014

About

None

Signature

None

Last Algorithm Comments

@Smart Grid:  03 Aug 2015, 08:27


@

@Smart Grid:  31 Jul 2015, 19:59


        @zilva try this. [Parameter("Max Volume", DefaultValue = 10000000, Step = 1000)]         public int MaxVolume { get; set; } if (ic_8 > MaxVolume)                 ic_8 = MaxVolume;

@Smart Grid:  24 Jul 2015, 19:05


@spike.bhv I added that in my cBot. see             long dc_i = Symbol.VolumeMax;             if (ic_8 > dc_i)                 ic_8 = dc_i;

Last Forum Posts

@Start bar of Highest/Lowest price.:  06 Nov 2015, 03:20


I can use this code to get highest & lowest price of last bars. And it's starting from last (0) bar.

             highest = MarketSeries.High.Maximum(int Bars);
            lowest = MarketSeries.Low.Minimum(int Bars);

but how can I use a bar number to start? I want to use from bar 1, not 0.

Anyone help me please!!!

@Highest & Lowest price.:  18 Oct 2015, 07:37


How can I collect Highest & Lowest price of some Bars in cAlgo?

MQL4 example:

High[iHighest(_Symbol,PERIOD_CURRENT,MODE_HIGH,BarCount,1)];
Low[iLowest(_Symbol,PERIOD_CURRENT,MODE_LOW,BarCount,1)];

@How to make break-even price between buy & sell.:  13 Jul 2015, 20:43


I can make break even price only for buy and only for sell. Here's my code. But I can't make break even price between buy & sell together. Please help me. How can I make this?

        private double pnt_12(TradeType TrdTp)
        {
            double Result = 0;
            double AveragePrice = 0;
            long Count = 0;
            for (int i = Positions.Count - 1; i >= 0; i--)
            {
                position = Positions[i];
                if (position.Label == Label && position.SymbolCode == Symbol.Code)
                {
                    if (position.TradeType == TrdTp)
                    {
                        AveragePrice += position.EntryPrice * position.Volume;
                        Count += position.Volume;
                    }
                }
            }
            if (AveragePrice > 0 && Count > 0)
                Result = Math.Round(AveragePrice / Count, Symbol.Digits);
            return Result;
        }

@Please convert those MT4 codes to cAlgo:  05 Jan 2015, 17:13


GetTickCount();

TimeCurrent();

@Everything is OK. But compiling error.:  29 Dec 2014, 17:54


Please review it. I can't recognize what's the error.

Notification Publishing copyrighted material is strictly prohibited. If you believe there is copyrighted material in this section you may use the Copyright Infringement Notification form to submit a claim.

No uploaded.

Warning! Executing cBots downloaded from this section may result in loss of funds. Use them at your own risk.
Smart Grid
  109
  5
  12725
by SaifBD
free  01 Jul 2015
Smart Grid cBot will open first position based on trend. Next positions will be added using 'PipStep' parameter. Dynamic Volume Exponent & 1 trade per 1 bar to minimize draw-down risk. Follow trend direction manually & open Buy Sell your choice.