InvestorsHub Logo
Followers 112
Posts 2267
Boards Moderated 0
Alias Born 05/14/2014

Re: TheFinalCD post# 64

Wednesday, 02/01/2023 6:39:49 AM

Wednesday, February 01, 2023 6:39:49 AM

Post# of 135
I couldn't find any, I saw it was moving but no catalyst. Right now my scanners are giving me false alerts, need to figure out the problem. Maybe it's the market market maker script I wrote

def trading_strategy(data, volume_threshold=500000):
# Initialize variables
position = 0
profit = 0
stop_loss = 0

# Iterate through the data
for i in range(1, len(data)):
# Check if the current volume is greater than the threshold
if data['Volume'] > volume_threshold:
# Enter a long position
position = data['Close']
stop_loss = data['Close'] * 0.99 # set stop loss to 1% below entry
# Close the position if the stop loss is reached
if position > 0 and data['Low'] <= stop_loss:
profit += position - stop_loss
position = 0
stop_loss = 0
if (data['Close'] > data['Open'] and data['Close'] > data['Close'][i-1] and data['Open'] < data['Open'][i-1]) or (data['Close'] < data['Open'] and data['Close'] < data['Close'][i-1] and data['Open'] > data['Open'][i-1]):
return True
return False

def trading_strategy(data):
# Initialize variables
position = 0
profit = 0
stop_loss = 0

# Iterate through the data
for i in range(1, len(data)):
# Check if the current candle is an engulfing pattern
if detect_engulfing(data.iloc[i-1:i+1]):
# Enter a long position if the market marker bullish
if data['Close'] > data['Open']:
position = data['Close']
stop_loss = data['Open']
# Enter a short position if the market marker is bearish
else:
position = data['Open']
stop_loss = data['Close']
# Close the position if the stop loss is reached
if (position > 0 and data['Low'] <= stop_loss) or (position < 0 and data['High'] >= stop_loss):
profit += position - stop_loss
position = 0
stop_loss = 0
Volume:
Day Range:
Bid:
Ask:
Last Trade Time:
Total Trades:
  • 1D
  • 1M
  • 3M
  • 6M
  • 1Y
  • 5Y
Recent QNRX News