hello..
im a newbie in forex..hurm
MULTICHARTS THREAD (INDICATORS + STRATEGIES + OTHER STUFF)
Moderator: moderators
Please add www.kreslik.com to your ad blocker white list.
Thank you for your support.
Thank you for your support.
-
- rank: <50 posts
- Posts: 4
- Joined: Mon Oct 13, 2008 1:05 am
- Reputation: 0
- Location: West Coast
- Gender:
TTM Squeeze Explanation??
Im looking for an explanation of TTM Squeeze and how it calculates. Can someone go through it line by line or section by section with me? I will post the code in here to make it easier. Thx thehaul
{Scalper Buys and Sells 7/18/2007
Written by Luis Gomez
inspired by John Carters "Mastering the Trade"
}
inputs:
buyColor(white),
sellColor(white),
width(3);
variables:
highBarsAgo(1),
possibleHighBarsAgo(1),
possibleHigh(-2),
hightoBeat(-1),
barsSincePaint(1),
lowBarsAgo(1),
possibleLowBarsAgo(1),
possibleLow(10000001),
lowtoBeat(10000000),
triggerPriceSell(-1),
triggerPriceBuy(1000000),
trend(1),
_UP(1),
_DOWN(-1),
_ON(1),
_OFF(-1);
// **************************************************
//****** Find and plot the highest swing high *******
// **************************************************
if trend = _UP then begin
if swingHighBar(1,H,2,barsSincePaint+2) > -1 then begin
possibleHighBarsAgo = swingHighBar(1,H,2,barsSincePaint+2);
possibleHigh = H[possibleHighBarsAgo];
end;
if possibleHigh >= hightoBeat then begin
highBarsAgo = possibleHighBarsAgo;
hightoBeat = possibleHigh;
triggerPriceSell = L[HighBarsAgo - 1];
end;
if C < triggerPriceSell and
highest(high,highBarsAgo) < hightoBeat then begin
plotpb[highBarsAgo](H[highBarsAgo],L[highBarsAgo
],"",sellColor);
alert("Scalper Sell");
trend = _DOWN;
barsSincePaint = highBarsAgo-1;
hightoBeat = -1;
lowtoBeat = 10000000;
triggerPriceBuy = 10000000;
triggerPriceSell = -1;
highBarsAgo = 1;
possibleHigh = -2;
end;
end;
// **************************************************
//****** Find and plot the lowest swing low *********
// **************************************************
if trend = _DOWN then begin
if swingLowBar(1,L,2,barsSincePaint+2) > -1 then begin
possibleLowBarsAgo = swingLowBar(1,L,2,barsSincePaint+2);
possibleLow = L[possibleLowBarsAgo];
end;
if possibleLow <= lowtoBeat then begin
lowBarsAgo = possibleLowBarsAgo;
lowtoBeat = possibleLow;
triggerPriceBuy = H[LowBarsAgo - 1];
end;
if C > triggerPriceBuy and
lowest(L,lowBarsAgo) > lowtoBeat then begin
plotpb[lowBarsAgo](H[lowBarsAgo],L[lowBarsAgo],"",buyColor);
alert("Scalper Buy");
trend = _UP;
barsSincePaint = lowBarsAgo-1;
possibleLow = 10000001;
lowtoBeat = 10000000;
hightoBeat = -1;
triggerPriceBuy = 10000000;
triggerPriceSell = -1;
lowBarsAgo = 1;
end;
end;
barsSincePaint = barsSincePaint+1;
if trend = _UP then highBarsAgo = highBarsAgo + 1;
if trend = _DOWN then lowBarsAgo = lowBarsAgo + 1;
setPlotWidth(1,width);
{Scalper Buys and Sells 7/18/2007
Written by Luis Gomez
inspired by John Carters "Mastering the Trade"
}
inputs:
buyColor(white),
sellColor(white),
width(3);
variables:
highBarsAgo(1),
possibleHighBarsAgo(1),
possibleHigh(-2),
hightoBeat(-1),
barsSincePaint(1),
lowBarsAgo(1),
possibleLowBarsAgo(1),
possibleLow(10000001),
lowtoBeat(10000000),
triggerPriceSell(-1),
triggerPriceBuy(1000000),
trend(1),
_UP(1),
_DOWN(-1),
_ON(1),
_OFF(-1);
// **************************************************
//****** Find and plot the highest swing high *******
// **************************************************
if trend = _UP then begin
if swingHighBar(1,H,2,barsSincePaint+2) > -1 then begin
possibleHighBarsAgo = swingHighBar(1,H,2,barsSincePaint+2);
possibleHigh = H[possibleHighBarsAgo];
end;
if possibleHigh >= hightoBeat then begin
highBarsAgo = possibleHighBarsAgo;
hightoBeat = possibleHigh;
triggerPriceSell = L[HighBarsAgo - 1];
end;
if C < triggerPriceSell and
highest(high,highBarsAgo) < hightoBeat then begin
plotpb[highBarsAgo](H[highBarsAgo],L[highBarsAgo
],"",sellColor);
alert("Scalper Sell");
trend = _DOWN;
barsSincePaint = highBarsAgo-1;
hightoBeat = -1;
lowtoBeat = 10000000;
triggerPriceBuy = 10000000;
triggerPriceSell = -1;
highBarsAgo = 1;
possibleHigh = -2;
end;
end;
// **************************************************
//****** Find and plot the lowest swing low *********
// **************************************************
if trend = _DOWN then begin
if swingLowBar(1,L,2,barsSincePaint+2) > -1 then begin
possibleLowBarsAgo = swingLowBar(1,L,2,barsSincePaint+2);
possibleLow = L[possibleLowBarsAgo];
end;
if possibleLow <= lowtoBeat then begin
lowBarsAgo = possibleLowBarsAgo;
lowtoBeat = possibleLow;
triggerPriceBuy = H[LowBarsAgo - 1];
end;
if C > triggerPriceBuy and
lowest(L,lowBarsAgo) > lowtoBeat then begin
plotpb[lowBarsAgo](H[lowBarsAgo],L[lowBarsAgo],"",buyColor);
alert("Scalper Buy");
trend = _UP;
barsSincePaint = lowBarsAgo-1;
possibleLow = 10000001;
lowtoBeat = 10000000;
hightoBeat = -1;
triggerPriceBuy = 10000000;
triggerPriceSell = -1;
lowBarsAgo = 1;
end;
end;
barsSincePaint = barsSincePaint+1;
if trend = _UP then highBarsAgo = highBarsAgo + 1;
if trend = _DOWN then lowBarsAgo = lowBarsAgo + 1;
setPlotWidth(1,width);
-
- rank: <50 posts
- Posts: 1
- Joined: Thu Oct 09, 2008 5:51 am
- Reputation: 0
- Gender:
HI,
I am currently looking at changing to multicharts, but would like assistance on a few items in relation to the TRO_DYNAMIC_FIBSSR. I have down loaded the code on the previous page, and noted that it is different from the Tradestation one. the difference is that the multicharts does not plot the entry and exit signals it only plots the High color and Low color. My question is i do not use radar screen on tradestation, but is that the reason. The variables i am after are actually generated from radar screen, or have i missed something else. If it is a radar screen item, is thier a way we can get the strategy with the entry and exit signals to work on MC?
I am currently looking at changing to multicharts, but would like assistance on a few items in relation to the TRO_DYNAMIC_FIBSSR. I have down loaded the code on the previous page, and noted that it is different from the Tradestation one. the difference is that the multicharts does not plot the entry and exit signals it only plots the High color and Low color. My question is i do not use radar screen on tradestation, but is that the reason. The variables i am after are actually generated from radar screen, or have i missed something else. If it is a radar screen item, is thier a way we can get the strategy with the entry and exit signals to work on MC?
Please add www.kreslik.com to your ad blocker white list.
Thank you for your support.
Thank you for your support.
Hi everybody
I have a few strategies in Tradestation ,but when i import these in multicharts
i get this error message.
Next Bar' can only be applied to 'Open', 'Date', 'Time' or 'Time_s'
This is the EasyLanguage part what caused the error
ExitShort next bar at ProtectiveStopValue Stop;or buy at next bar
Anyone who can help me ?
regards
I have a few strategies in Tradestation ,but when i import these in multicharts
i get this error message.
Next Bar' can only be applied to 'Open', 'Date', 'Time' or 'Time_s'
This is the EasyLanguage part what caused the error
ExitShort next bar at ProtectiveStopValue Stop;or buy at next bar
Anyone who can help me ?
regards
Hello all and Happy New Year!
I've a question regarding an hourly fucntion.
If we say date <>date[1] this plots the start of each day on an intraday chart, correct?
How to do the same thing but plotting every hour on an intraday chart?
MC don't have an Hour function and I'm clueless on how to write this.
Regards,
ptcman
I've a question regarding an hourly fucntion.
If we say date <>date[1] this plots the start of each day on an intraday chart, correct?
How to do the same thing but plotting every hour on an intraday chart?
MC don't have an Hour function and I'm clueless on how to write this.
Regards,
ptcman
Please add www.kreslik.com to your ad blocker white list.
Thank you for your support.
Thank you for your support.