Topics
Replies
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: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
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, 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
Skypips
26 Jul 2020, 03:07
RE:
Never mind actually worked :D
@Skypips