convert help New comment Forex Trader 2005.08.09 02:40 any here there could convert this one :-) /*[[ 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 I have a mt3 indicator, how to use it in mt4? Indicator Fisher Transform Needed! Need help ive got 2 errors don't know how to finish the code Forex Trader 2005.08.20 17:21 #1 trying again :-) need help convert this one to mq4 New comment
/*[[
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