Topics
06 Sep 2019, 14:08
 1
 1286
 1
24 May 2019, 17:24
 1
 760
 1
23 May 2019, 10:37
 2
 857
 1
13 Apr 2019, 19:01
 1
 1009
 1
18 Feb 2019, 20:46
 1093
 6
18 Feb 2019, 18:06
 899
 4
04 Jan 2019, 12:56
 3
 1185
 1
22 Dec 2018, 01:56
 0
 986
 1
22 Dec 2018, 01:52
 2
 991
 1
Replies

Skypips
26 Jul 2020, 03:07

RE:

Never mind actually worked :D


@Skypips

Skypips
25 Mar 2019, 00:46

Absolutely! Haven’t even mentioned the difficulty of using the mobile app.

Any sudden move with fingers can move the drawing lines out of their place. Instead, best to have a pivot point where by selecting it then the line can move. Or by double clicking on lines then able to edit them or move them freely. Right now it’s just not gonna work. 

I will have to switch back to MT4


@Skypips

Skypips
19 Feb 2019, 10:37

Thank you. Then it seems the issue is with the broken pips code is not working

 Symbol.Ask > sma + BrokenPips * Symbol.PipSize


@Skypips

Skypips
19 Feb 2019, 10:23

RE:

Hi Panagiotis,

Tank you for the reply. I am new to coding, trying to see how this function works as well, I have also tried value 0 but i think it is not related to what I am trying to do. The idea is:

Conditions for trade Buy:

1. If price crossed above SMA

2. Then, if price breaks X amount of pips after it crossed SMA

3. Place buy order

 

Panagiotis Charalampous said:

Hi sky pips,

Why do you use -1 in HasCrossedAbove(MarketSeries.Close, -1) ?

Best Regards,

Panagiotis

 


@Skypips

Skypips
18 Feb 2019, 18:59

Thanks Ton. I have managed it by adding var Position and then  if Position == null then buy or sell happens.

 

thanks a lot


@Skypips

Skypips
18 Feb 2019, 18:19

I managed it with  ExecuteMarketOrder

Now the issue is the bot creates multiple orders at the same time, how can i avoid that and keep only one order until it is closed?


@Skypips

Skypips
15 Feb 2019, 15:38

This is such a great support community. Thank you.

I am now thinking of how to adding SMA but still couldnt figure out where

I want to add the condition to open buy trade only if the price is above SMA and open Sell trade only if the price is below SMA.

Appreciate the supoort 


@Skypips

Skypips
13 Feb 2019, 18:46

The only problem I am encountering now is that the robot is counting the Highest and Lowest (last bars). I want it to count the Highest and Lowest (last bar - 1 bar)

So, in that case, it will ignore counting the last bar, but it will count the previous range of bars.

Appreciate your help.


@Skypips

Skypips
13 Feb 2019, 18:37

Hello, just want to say I have managed to add that!


@Skypips

Skypips
13 Feb 2019, 17:54

Thank you! You are amazing!

I was also thinking is it possible to add an extra offset of pips instead of counting highest / lowest, let the robot count highest + 5 pips / lowest + 5 pips

Would be grateful for your help.

 //+------------------------------------------------------------------+
        //| Setup highest and lowest price of counted bars                   |
        //+------------------------------------------------------------------+
        private void RobotEngine()
        {
            if (MarketSeries.Close.Count - 5 > BarsCount)
            {
                highest = MarketSeries.High.Maximum(BarsCount);
                lowest = MarketSeries.Low.Minimum(BarsCount);
                ChartObjects.DrawLine("hln", MarketSeries.OpenTime.Last(BarsCount), highest, MarketSeries.OpenTime.LastValue, highest, Colors.DeepPink, 1, LineStyle.Solid);
                ChartObjects.DrawLine("lln", MarketSeries.OpenTime.Last(BarsCount), lowest, MarketSeries.OpenTime.LastValue, lowest, Colors.DeepPink, 1, LineStyle.Solid);
            }
            else
                Print("Not enough bars loaded for bar_count function");
        }

 


@Skypips