fouadmail
fouadmail's avatar

Info

Username:fouadmail
Name:fouadmail
Member since: 21 Dec 2016

About

None

Signature

None

Last Algorithm Comments

@Renko:  21 Dec 2016, 00:58


It Repaints ?

@Renko:  21 Dec 2016, 00:48


Great Indicator ! Thank you However, cannot get it to work in the tester using my cBot ... Code: using System; using System.Linq; using cAlgo.API; using cAlgo.API.Indicators; using cAlgo.API.Internals; using cAlgo.Indicators; namespace cAlgo {     [Robot(TimeZone = TimeZones.UTC, AccessRights = AccessRights.None)]     public class RenkoBot : Robot     {         [Parameter("RenkoPips", DefaultValue = 10, MinValue = 2, Step = 2)]         public double RenkoPips { get; set; }         [Parameter("Quantity (Lots)", DefaultValue = 1, MinValue = 0.01, Step = 0.01)]         public double Quantity { get; set; }         private Renko mr_indi;         protected override void OnStart()         {             mr_indi = Indicators.GetIndicator<Renko>(RenkoPips, 100, 3, "SeaGreen", "Tomato");         }         protected override void OnTick()         {             var longPosition = Positions.Find("Renko", Symbol, TradeType.Buy);             var shortPosition = Positions.Find("Renko", Symbol, TradeType.Sell);             bool lastTwoBarsBullish = mr_indi.Open.Last(1) < mr_indi.Close.Last(1);             bool lastTwoBarsBearish = mr_indi.Open.Last(1) > mr_indi.Close.Last(1);             if (lastTwoBarsBullish && longPosition == null)             {                 if (shortPosition != null)                     ClosePosition(shortPosition);                 ExecuteMarketOrder(TradeType.Buy, Symbol, 10000, "Renko");             }             else if (lastTwoBarsBearish && shortPosition == null)             {                 if (longPosition != null)                     ClosePosition(longPosition);                 ExecuteMarketOrder(TradeType.Sell, Symbol, 10000, "Renko");             }         }     } }  

@Renko:  21 Dec 2016, 00:13


A very valuable job, thank you!
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.

No uploaded.