How to use current price blocks
Last updated
Was this helpful?
Last updated
Was this helpful?
**Price Data is a special block from the data category, however, it does not accept any input nor it throws any output. Price Data can be considered as the starting point of the strategy that takes into account the price when backtest or forward test is run. If you'd like to use real-time price in your strategy then consider using the Current Price Block instead.
**Action block does not give any output to the users. Instead, when running in the background, it instructs our services when to place an order with other meta-data (stop loss, take profit)
______________________________________________________________________
Remember not to confuse the Price Data with the Current Price block. Since both are different, hence you will see a Price Data error in your strategy.
Before we understand how to utilise current price, lets learn what Price Data actually is:
Price Data - simply is the starting point of the strategy. It is not the current price, rather, a list of prices of historical data that are fed into the strategy while backtesting.
If you want to consider the latest price in your Strategy, then you'd have to use the Current Price block. The current Price block gives you the real-time value of that instrument at a particular point in time
Example usage:
Place a Buy order whenever the Current Price is higher than 0.2