Browsing category

Python

An Explanation of the numPosCurrentSector function

Here is some code and visual aid to help understand how TradingSimula-18 figures out how many current positions are in the same sector as the market that is currently being tested. Now that I know the sector the current market belongs to I can use that information to extract the total positions in that sector. […]

READ MORE

When working with Python – Remember Indentations and You are the Master of your Domain!

Indent four spaces after an if statement. if x ==1: ++++4x = 2 Let’s break down the above code:  Always test the current bar’s high or low against the signal trigger price.  If the extreme of the bar exceeds the level then you know you were filled.  In TradingSimula18 you are sitting on the close […]

READ MORE
  • 1
  • 2