trying again :-) need help convert this one to mq4
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
/*[[
Name := 2Extreme4U - Grid Builder
Author := 2Extreme4U
Link := http://www.omniscienttrader.com
Separate Window := No
First Color := LightCyan
First Draw Type := Symbol
First Symbol := 233
]]*/
Input: GridSpace(50);
var:I(0);
var:HighPrice(0);
var:LowPrice(0);
var:GridS(0);
var:SL(0);
SetLoopCount(0);
setIndexvalue(bars, 1);
HighPrice = Round(High[Highest(MODE_HIGH, bars - 2, bars - 2)] * 1000);
//SL = High[Highest(MODE_HIGH, SLLookback, SLLookback)];
LowPrice = Round(Low[Lowest(MODE_LOW, bars - 1, bars - 2)] * 1000);
GridS = GridSpace / 10;
for I = LowPrice to HighPrice
{
Print("mod(I, GridSpace): " + mod(I, GridS) + " I= " + I);
If mod(I, GridS) == 0 then
{
MoveObject(I + "Grid", OBJ_TRENDLINE, Time[Bars - 2], I/1000, Time[1], I/1000, MediumSeaGreen, 1, STYLE_SOLID);
};
};
Thanks