Bingy
Member
Hey Guys,
As a way to give back to this super helpful community I have made a modified SilverBullet strategy.
The original strategy doesn't use indicators, but this one takes the overall concept and incorporates indicators, as well as the time of day for entries and exits.
Works best on Futures with the 15 min time frame. As always use at your own risk.
Anyway, check it out if you want. Peace!
As a way to give back to this super helpful community I have made a modified SilverBullet strategy.
The original strategy doesn't use indicators, but this one takes the overall concept and incorporates indicators, as well as the time of day for entries and exits.
Works best on Futures with the 15 min time frame. As always use at your own risk.
Anyway, check it out if you want. Peace!
Code:
#TIME LABEL CODE
input showlabels = yes;
input showverticals = yes;
#New York Silver Bullet
AddLabel(showlabels and SecondsFromTime(1045) >= 0 and SecondsTillTime(1130) > 0, "Zone 4", Color.GRAY);
AddVerticalLine(showverticals and SecondsFromTime(1045) == 0, "NYC SB", Color.GRAY);
AddVerticalLine(showverticals and SecondsFromTime(1130) == 0, "End", Color.GRAY);
#RSI CODE
input length = 14;
input over_Bought = 70;
input over_Sold = 30;
input Strike_Up_1 = 70.00;
input Strike_Up_2 = 55.55;
input price = close;
input averageType = AverageType.WILDERS;
input showBreakoutSignals = no;
def NetChgAvg = MovingAverage(averageType, price - price[1], length);
def TotChgAvg = MovingAverage(averageType, AbsValue(price - price[1]), length);
def ChgRatio = if TotChgAvg != 0 then NetChgAvg / TotChgAvg else 0;
def RSI = 50 * (ChgRatio + 1);
def OverSold = over_Sold;
def OverBought = over_Bought;
#New York Longs
def NYLongPosition_1 = RSI crosses above Strike_Up_1 and
SecondsFromTime(1030) >= 0 and
SecondsTillTime(1100) >= 0;
def NYLongPosition_2 = RSI crosses above Strike_Up_2 and
SecondsFromTime(1030) >= 0 and
SecondsTillTime(1100) >= 0;
def NYLongPosition_3 = RSI crosses above over_Sold and
SecondsFromTime(1030) >= 0 and
SecondsTillTime(1100) >= 0;
#NEW YORK POSITION ENTRY
AddOrder(OrderType.BUY_TO_OPEN, NyLongPosition_2, open[-1], 4, tickcolor = Color.GREEN, arrowcolor = Color.GREEN, name = "Enter Long");
#EXIT LONG POSITION
def NYExitPosition = if NYLongPosition_1 or NYLongPosition_2 or NYLongPosition_3 then SecondsFromTime(1145) >= 0 else SecondsFromTime(1145) >= 0;
AddOrder(OrderType.SELL_TO_CLOSE, NYExitPosition , open[-1], 4, tickcolor = Color.RED, arrowcolor = Color.RED);
#STOP LOSS
######################
#STOP LOSS
######################
# Find the lowest low of the last 4 bars from the BuySignal
def Stop_loss = if
#NEW YORK
NYLongPosition_2
then Lowest(low, 0) else Stop_loss[1];
# Check if the current close is below the stop loss level
def isStopTriggered = close < Stop_loss;
Last edited: