Skip to main content

πŸ“ˆ LTP Based Price Band​

LTP Based Price Band is used to define the LTP Based Price band % for respective LTP / Market Segment/ Instrument. This rule is applicable for all the segment except IPO / MF and its associated instrument.

βš™οΈ Template Creation Parameter​

Control Name πŸ“‹Control Type βš™οΈControl Value πŸ“
Market SegmentDrop downList of all the exchanges
InstrumentDropdownApplicable for derivative segments
Value will be Future & Option
Range StartInputStart range (will be checked with >)
Range EndInputEnd range (will be checked with <=)
Buy Range %InputSystem shall accept numeric value upto 4 decimal with in range 0.0001 to 999.9999
Sell Range %InputSystem shall accept numeric value upto 4 decimal with in range 0.0001 to 999.9999

Price Range can not overlap with in Market Segment / Instrument i.e. in case a price for a particular market segment / instrument is already defined then such price can not be part of any other range for same Market Segment/instrument

Accordingly, Order shall get validated and rejected if order Price is beyond the % defined from LTP.

System shall have following set of parameters to define the LTP Price Band %

Control Name πŸ“‹Control Type βš™οΈBusiness Logic πŸ“
Market SegmentDrop-DownΒ· Should display the list of all Market Segment available in the system based on the license.
Β· If license update with New Segment, same should get display here in the Dropdown list.
Β· Along with Base segment, Combined segment (i.e. All Equity, All FNO, All CDS, All COMM) should also be displayed in the list.
InstrumentDrop-DownΒ· Shall display the following item in the drop-down
FUTURE
OPTION
Β· This field shall be disabled for CASH Segment like (NSECASH, BSECASH, MSECASH, All Equity)
Β· Shall get enable if member selects derivative segments in 'Market Segment' drop-down list (i.e. NSEFNO, BSEFNO, MSEFNO, NSECDS, BSECDS, MSECDS, MCX, NCDEX, ICEX, NSECOMM, BSECOMM, All FNO, All CDS, All COMM)
  • System should allow to add the records in the Grid view for the selected combination of Market Segment and Instrument.
  • System should display the list of records added previously in the grid view for the selected combination of 'Market Segment' and 'Instrument'

Following Parameters should be available in the grid view

Control Name πŸ“‹Control Type βš™οΈBusiness Logic πŸ“
AddButtonΒ· By default, 1^st^ row shall be enable.
Β· Once after defining the parameter value on all columns in the row, system should allow to define the parameter value on next row. (i.e. on Click of ADD button)
Β· On click of ADD button for adding a new record-System should validate the data specified in the previous row with following check condition
a. If a Column (i.e. Upper LTP, Lower LTP, Buy Side %, Sell Side %) is blank or if it with default value '0' -then system should Pop-up a message as:
'Please Enter the Value in Lower LTP' with respective column name.
b. If Lower LTP value is greater then Higher LTP- then, system should Pop-up a message as:
'Lower LTP should not be greater than Higher LTP'
Β· System should allow to move on to the New Row after defining the Proper Value in Previous Row.
Range StartEntry FieldΒ· Should allow to enter only numeric value. Character and special characters should not be allowed.
Β· Price range shall be allowed to enter up to 6 digits followed by 4 digits after decimal locator (i.e. 999999.9999)
Β· System shall allow to define negative price
Β· By default, value should be 0
Β· Price should get incremented/decremented on click of UP/ DOWN Arrow key with an incremental Tick of '0.01'
Β· Price specified in this field shall be less than equal to the price specified in 'Upper LTP' field.
Range EndEntry FieldΒ· Should allow to enter only numeric value. Character and special characters should not be allowed.
Β· Price range shall be allowed to enter up to 6 digits followed by 4 digits after decimal locator (i.e. 999999.9999)
Β· System shall allow to define negative price
Β· By default, value should be 0
Β· Price should get incremented/decremented on click of UP/ DOWN Arrow key with an incremental Tick of '0.01'
Β· Price specified in this field shall be greater than equal to the price specified in 'Lower LTP' field.
Buy Lower RangeEntry FieldΒ· Should allow to enter only numeric value. Character and special characters should not be allowed.
Β· Percentage shall be in the range of 0.0001 to 999.9999
Β· Negative % should not be allowed.
Β· By default, value should be 0
Β· Percentage tick should get incremented/decremented on click of UP/ DOWN Arrow key with an incremental Tick of '0.01'
Β· Percentage defined in this field shall be consider for Buy order validation.
Buy Upper RangeEntry Field. Should allow to enter only numeric value. Character and special characters should not be allowed.
Β· Percentage shall be in the range of 0.0001 to 999.9999
Β· Negative % should not be allowed.
Β· By default, value should be 0
Β· Percentage tick should get incremented/decremented on click of UP/ DOWN Arrow key with an incremental Tick of '0.01'
Β· Percentage defined in this field shall be consider for Buy order validation.
Sell Lower RangeEntry Field. Should allow to enter only numeric value. Character and special characters should not be allowed.
Β· Percentage shall be in the range of 0.0001 to 999.9999
Β· Negative % should not be allowed.
Β· By default, value should be 0
Β· Percentage tick should get incremented/decremented on click of UP/ DOWN Arrow key with an incremental Tick of '0.01'
Β· Percentage defined in this field shall be consider for Buy order validation.
Sell Upper RangeEntry FieldΒ· Should allow to enter only numeric value. Character and special characters should not be allowed.
Β· Percentage shall be in the range of 0.0001 to 999.9999
Β· Negative % should not be allowed.
Β· By default, value should be 0
Β· Price should get incremented/decremented on click of UP/ DOWN Arrow key with an incremental Tick of '0.01'
Β· Percentage defined in this field shall be consider for Sell order validation.
DeleteButtonΒ· Delete Button should be available against each added row in the grid view.
Β· On Click of delete button, system should display the Pop-up confirmation message * Do you wish to delete the record" with "Yes" or "No" confirmation message?

. If "YES" – system should delete that specific record from the grid view, if member clicks on "No"-Popup window should get close and should not make any impact in the record
Control Name πŸ“‹Control Type βš™οΈBusiness Logic πŸ“
SaveButton
  • Minimum one Record should be available in the grid view to save the record.
  • Popup confirmation message should get displayed while on click of SAVE button. Confirmation message be like 'Do you wish to save the record with Yes and No option.
  • On click of Yes – System should save the record for the respective Segment and Instrument.
  • On Click of No – System should not save the record and popup-window should get close without any changes in the data on the grid view.
  • On successful insertion of record, system should display message as 'Record saved Successfully'.
  • System should perform all check condition during modification and should display proper message on modification.
CloseButton
  • On click of 'CLOSE' button – LTP Price band window should get close.

βœ… Validation​

  • Incase, if LTP is not available for any of the scrip- then system shall consider the Last Close Price of the respective scrip to derive the price range.
  • System should not validate the Order from the scrip against this LTP Price Band rule if LTP of the scrip doesn't falls under the 'Lower LTP' and 'Upper LTP' value defined in this rule.
  • System should accept the order if Order Price is within the derived Price range based on current LTP of the scrip and defined LTP Price Band %.
  • In case of Buy Order – System should consider the Buy Lower Range for minimum and Buy Upper Range for maximum price.
  • In Case of Sell Order- System should consider the Sell Lower Range for minimum and Sell Upper Range for maximum price.
  • System should reject the order if Order Price is out of derived price range.

🎯 RRT RULE​

As per this rule configuration, system should validate order based on LTP Based Price Band

Following are the list of variables for this rule

Variable Name πŸ“‹Variable Type βš™οΈVariable Value πŸ“Default πŸ”§
Restrict Fresh Order BAsed on LTP Based price BandCheck-BoxEnable / DisableDisable

Implementation​

If Rule is ON– System should Validate, and Reject the Order based on the LTP-Based Price Band.

If Rule is OFF – System should not Validate the Order against LTP-Based Price Band.

Assume following data defined in LTP Based Price Band

ContSeg.InstrumentRange StartRange EndBuy Lower RangeBuy Upper RangeSell Lower RangeSell Upper Range
1NSE-EQEQUITY20004000520640

Assume that Rule is ON

Place Order: TCS LTP Price: 3589.65

Range Type πŸ“ŠPercentage πŸ’°Calculation πŸ“Result 🎯
Buy Lower Range5%=3589.65*5%= 179.4825=3589.65 - 179.4825 = 3410.1675
Buy Upper Range20%=3589.65*20%=717.93=3589.65 + 717.93 = 4307.58
Sell Lower Range6%=3589.65*6%=215.379=3589.65 - 215.379 = 3374.271
Sell Upper Range40%=3589.65*40%=1435.86=3589.65 + 1435.86 = 5025.51
ContSeg.SymBuy/SellPlace Order PriceOrder Status
1NSE-EQTCSBuy3380Order should get REJECTED
2NSE-EQTCSSELL3390Order should get PASS