Hi
It seems a new concept--congratulations
But i did not get for what purpose u did draw a T/L between 02:00 (H) or (L) and the point 50%--
Would u try to show it on a currency chart
Thanks again
Hi Chehab,
This method are base on short time frame scalping.
example:
EU, TF5, Manual Sell Setups
At 04:00, we want to see where is the CS close position ( either above/below 50% range )
if CS close below 50%, we are likely to OP sell only.
At 04:05, a trendline ( both ) will be drawn by the indicator
Trendline Top to 50% range is our Barrier / SL alert for sell position.
SL 5pips above range high, TP max at level "Possible Downtrend profit" or at range low. I prefer 10-15pips
The same concept also apply for buy position with using trendline Low to 50% range.
Hope you get the picture of this explanation.
I do hope our friends here can contribute some coding for our sharing. Thanks.
This method are base on short time frame scalping.
example:
EU, TF5, Manual Sell Setups
At 04:00, we want to see where is the CS close position ( either above/below 50% range )
if CS close below 50%, we are likely to OP sell only.
At 04:05, a trendline ( both ) will be drawn by the indicator
Trendline Top to 50% range is our Barrier / SL alert for sell position.
SL 5pips above range high, TP max at level "Possible Downtrend profit" or at range low. I prefer 10-15pips
The same concept also apply for buy position with using trendline Low to 50% range.
Hope you get the picture of this explanation.
I do hope our friends here can contribute some coding for our sharing. Thanks.
Hello my friends,
any helps?
any helps?
H
Something like this
void MarkItDownX(int iBackBars, int iForwardBars) { // Other free stuff at http://www.selectfx.net/free_stuff_menu.htm int iHighIndex, iLowIndex; double dHi, dLo; datetime dtStart, dtEnd; // Get high/low of last n periods iHighIndex = iHighest(NULL, PERIOD_M5, MODE_HIGH, iBackBars, 1); iLowIndex = iLowest(NULL, PERIOD_M5, MODE_LOW, iBackBars, 1); dHi = iHigh(NULL, PERIOD_M5, iHighIndex); dLo = iLow(NULL, PERIOD_M5, iLowIndex); dtStart = TimeCurrent()-(iBackBars*300); // n*5 min bars dtEnd = TimeCurrent()+(iForwardBars*300); // n*5 min bars sstrCurrentUpLine = "X UP " + TimeToStr(TimeCurrent()); // Set current active line name sstrCurrentDownLine = "X DN " + TimeToStr(TimeCurrent()); ObjectCreate(sstrCurrentUpLine, OBJ_TREND, 0, dtStart, dLo, dtEnd, dHi); ObjectSet(sstrCurrentUpLine, OBJPROP_COLOR, Red); ObjectSet(sstrCurrentUpLine, OBJPROP_STYLE, STYLE_SOLID); ObjectSet(sstrCurrentUpLine, OBJPROP_WIDTH, 2); ObjectSet(sstrCurrentUpLine, OBJPROP_RAY, False); ObjectCreate(sstrCurrentDownLine, OBJ_TREND, 0, dtStart, dHi, dtEnd, dLo); ObjectSet(sstrCurrentDownLine, OBJPROP_COLOR, Blue); ObjectSet(sstrCurrentDownLine, OBJPROP_STYLE, STYLE_SOLID); ObjectSet(sstrCurrentDownLine, OBJPROP_WIDTH, 2); ObjectSet(sstrCurrentDownLine, OBJPROP_RAY, False); }
but you will need this at the top of the EA to store the line names
static string sstrCurrentUpLine, sstrCurrentDownLine;
and to only call it once every 2 hours
Then use something like this to get the current positions of the latest, i.e. 'active' lines...
dUpLine = ObjectGetValueByShift(sstrCurrentUpLine, 0); dDownLine = ObjectGetValueByShift(sstrCurrentDownLine, 0);
FWIW
-BB-
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
I’m a total newbie in mq4 programming and this is my first post in this forum. I found a simple rare scalping technique.
For manual setup, I draw the trendline by manual. This image should be the trading setups.
I would like to ask help from my master programmer friends here to create this trendline setups.
I’ve try programming language Array, iBarShift(Symbol() & iHighest, iLowest, etc. but still no luck.
The explanation of the indicator setups is shown below.
Should any missing information shown, please do inform me.
Thanks in advance.