You may like to place trade in NIFTY options or futures using Nifty spot charts. Here is How you can trade in derivatives by TradingView using underlying ?
You may also like to trade in one symbol based on trigger from another symbol. For example, you notice HDFC is about to break above important resistance level – and you think ICICI will also go upwards based on momentum. You are already Long in HDFC. Now, you want to go Long in ICICI at breakout level.
You may also like to trade in domestic commodity contracts (MCX) based on international commodity levels.
The first case is nicely shown in the video above; the second and third cases are just extrapolations of the first. Here are few important points you should not miss:
Input Symbol vs Exchange Symbol
The input symbol should be the same as the TradingView chart symbol (called underlying). The exchange symbol should be the same as the symbol of a contract without expiry. In the alert box, if you just mention the type, the trade will go (see example below).
Alternatively, you can also put an easier symbol as Input Symbol if the underlying is the same for different instruments. In the example below, the input symbol is BNCALL. Here, it is also mandatory to put this symbol in an alert box.
Price and Order Types, PnL which need Price (Paper Trading)
The above examples are the same as those shown in the video, but they are good only for Market Orders.
By default, the price is picked from the trading view chart. Limit, SLL, and SLM orders need the correct price. For example, if you try to place a Limit Order in Option at the price of Underlying, it may cause issues. So, please use only Market Orders in APIBridge Symbol Settings.
If you want to use order types that need price, you should also mention the price in the alert box as shown below. In paper trading also, price from the signal is required to calculate PnL. In live trading, PnL is calculated based on actual traded price returned by broker API, so PnL shows correctly regardless of whether TradingView provides the price or not.
2020-05-13 09:36:09.021,DEBUG,Signal Received from Trading View: ID: 3,Type: SE, Symbol: BANKNIFTY,Exchange: ,InstrumentName: OPTIDX,OrderType: M,ProdType: ,Price: 19798.9,Qty: 1,OptionType: ,Expiry: ,Strike: ,TrigPrice: 19897.85, SquareOff: 296.95, TrailingTicks: 0, StopLossPrice: 98.95, STag: STG1
2020-05-13 09:36:09.102,DEBUG,Sending Order: ID: 3,Type: SE, Symbol: BANKNIFTY2051420000CE,Exchange: NFO,InstrumentName: OPTIDX,OrderType: 2,ProdType: INTRADAY,Price: 0,Qty: 20,OptionType: ,Expiry: 14-05-2020,Strike: 20000,TrigPrice: 19897.85, SquareOff: 296.95, TrailingTicks: 0, StopLossPrice: 98.95, STag: STG1
Hi your API Extension is behaving differently in case “option Buy/sell” . When i am trying to send Market order it is takking it as STOP order. Please check OrderType. In one Receiving log it showing OrderType: M and on 2nd row Sending signal to Broker it is showing OrderType: 2 .(STOP) . Thus My broker is rejecting order
From your logs we understand you are using Fyers. Issue is in APIBridge settings only which needs to be corrected. Contact [email protected] and ask for help via remote session.