-
Notifications
You must be signed in to change notification settings - Fork 20
Closed
Description
i can run script without problem
for example this one
"""
@pyne
"""
from pynecore import Series
from pynecore.lib import script, close, ta, strategy, plot, color, input
@script.strategy("MA Crossover Strategy", overlay=True)
def main(
fast_length: int = input.int(9, title="Fast MA Length", minval=1),
slow_length: int = input.int(21, title="Slow MA Length", minval=1)
):
# Calculate indicators
fast_ma: Series[float] = ta.sma(close, fast_length)
slow_ma: Series[float] = ta.sma(close, slow_length)
# Generate signals
buy_signal = ta.crossover(fast_ma, slow_ma)
sell_signal = ta.crossunder(fast_ma, slow_ma)
# Execute strategy
if buy_signal:
strategy.entry("Long", strategy.long)
elif sell_signal:
strategy.close("Long")
# Visualization
plot(fast_ma, "Fast MA", color=color.blue)
plot(slow_ma, "Slow MA", color=color.red)but how can i check chart or plot data
out put folder only generate text file
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels