Save BB diff. Value at order open New comment [Deleted] 2009.02.25 10:58 Hallo, i have tried do search in the forum a solution for my Problem: What i wont do is fix at order open the value of the diff. from Bollinger Bands, to calculate my TrailingStoo: My FORMULA: Diff. Bollingerbands (at orderopen) Initial Stop: 50 Pips Diff. Bollingerbands(bar [0] - now) at order open i calculate my factor; Diff. Bollingerbands / Initial Stop = Factor order is open, and first bar closed; Diff. Bollingerbands / Factor = NEW STOP Current Price -/+ NEW STOP = my Trailingstop I have tried this: meinHigh= High[iHighest(NULL, 0, MODE_HIGH, 24,1)]; meinLow= Low[iLowest(NULL, 0, MODE_LOW, 24,1)]; oben=iBands(NULL, PERIOD_H1, 20, 2, 0, PRICE_CLOSE, MODE_UPPER,0); unten=iBands(NULL, PERIOD_H1, 20, 2, 0, PRICE_CLOSE, MODE_LOWER,0); FaktorLong= NormalizeDouble((oben-unten)*Point/((oben-unten)*Point/(Ask-meinLow)*Point),4); FaktorShort= NormalizeDouble((oben-unten)*Point/(((oben-unten)*Point)/(meinHigh-Bid)*Point),4); But the problem is always that i have to save the value at order open: Can someone help me. THX BollingerBands TrailingStop [CODE Help] RSI + BB + MA Indicator TrailingStop/1R-Risk/Pos.M/ and save value New comment
Hallo,
i have tried do search in the forum a solution for my Problem:
What i wont do is fix at order open the value of the diff. from Bollinger Bands, to calculate my TrailingStoo:
My FORMULA:
Diff. Bollingerbands (at orderopen)
Initial Stop: 50 Pips
Diff. Bollingerbands(bar [0] - now)
at order open i calculate my factor;
Diff. Bollingerbands / Initial Stop = Factor
order is open, and first bar closed;
Diff. Bollingerbands / Factor = NEW STOP
Current Price -/+ NEW STOP = my Trailingstop
I have tried this:
But the problem is always that i have to save the value at order open:
Can someone help me. THX