Read your first Pyne program line by line, then change it to draw opening and closing prices on the same chart. Learn what the marker, imports, indicator settings, main function, plot parameters, indentation and comments do, with real PyneIDE examples.
Want more educational and trading videos? Like this video if it helped, and subscribe for more.
Read chapter 3: https://pynecore.org/learn/en/03-reading-code/?utm_source=youtube&utm_medium=video&utm_campaign=pyne-book&utm_content=e03
Download the examples: https://pynecore.org/learn/examples/pyne-code-examples.zip
Free book: https://pynecore.org/learn/en/
Install PyneIDE: https://marketplace.visualstudio.com/items?itemName=pynesys.pyneide
CHAPTERS
00: 00 Pyne Code from Scratch
00: 15 Add a second price line
00: 31 Programs and Python syntax
01: 01 Docstrings and the Pyne edge marker
01: 51 Imports and exact names
02: 22 Indicator settings and overlay
02: 45 main and indentation
03: 17 plot values and named parameters
03: 54 Add the opening price
04: 39 Predict and run the chart
05: 06 Fix indentation
05: 23 Comments
05: 42 Exercise: add the high price
06: 03 Solution and reading the lines
06: 31 Check yourself and next steps
Use first_chart.py from chapter 2, and save your changes in two_lines.py. Remember to import open from pynecore.lib: Python also has a built-in function named open, which is not the candle opening price.
The exercise adds high to the import and a third plot call. At each candle, its high cannot be below its open or close. Connecting lines can cross between candles, so compare the values at the candles.
The DEMOBTC practice data is synthetic, not real Bitcoin prices. This lesson uses the free local Pyne-code workflow: no account, API key or subscription is required.
Pyne Code from Scratch follows our free book one chapter at a time. Tell us in the comments where you got stuck.
Join the PyneSys Discord community: https://discord.pynesys.io
Ask questions, share your progress, and get help with PyneIDE in #pyneide.
Channel: https://discord.com/channels/1340734687496114216/1560375118419599470