Board logo

标题: 【Option Price】 [打印本页]

作者: 龙听    时间: 2022-11-3 11:56     标题: 【Option Price】

  1. inputs:
  2.         MyAssetType( 1 ),
  3.         ExpMonth_MM( 0 ),
  4.         ExpYear_YYYY( 0 ),
  5.         StrikePr( 0 ),
  6.         Rate100( 0 ),
  7.         Yield100( 0 ),
  8.         ForeignRate100( 0 ),
  9.         Volty100( 0 ),
  10.         PutCall( Put ),
  11.         EuroAmer01( 0 ) ;

  12. variable: var0( 0 ) ;

  13. var0 = ExpYear_YYYY - 1900;

  14. Plot1( OptionPrice(
  15.         MyAssetType,
  16.         DaysToExpiration( ExpMonth_MM, var0 ),
  17.         StrikePr,
  18.         Close,
  19.         Rate100,
  20.         Yield100,
  21.         ForeignRate100,
  22.         Volty100,
  23.         PutCall,
  24.         EuroAmer01 ), "OptPrice" ) ;
复制代码





欢迎光临 龙听期货论坛 (http://qhlt.club/) Powered by Discuz! 7.2