NexusFi: Find Your Edge


Home Menu

 





General question about my algorithm


Discussion in EasyLanguage Programming

Updated
    1. trending_up 1,301 views
    2. thumb_up 0 thanks given
    3. group 1 followers
    1. forum 1 posts
    2. attach_file 0 attachments




 
Search this Thread
  #1 (permalink)
anotheruser
San Francisco
 
Posts: 1 since Oct 2016
Thanks Given: 0
Thanks Received: 0

Hi folks,

I am trying to execute algorithm below every Monday.

It opens two near weekly positions on MONDAY 12pm:

1) vertical call OTM spread with strike prices around 1.1 CurrentPrice and 1.6CurrentPrice
2) Buy Call ATM - 33% asset

It closes one or more of the positions based on IFs below and remaining positions close on the same week Friday 12pm.

Is there someone who can help me write this and also backtest? other suggestions?



--------------------------------------

Here are the main lines I looked up from manual:

POSITION 2 = 0.5 x POSITION 1

Open Position on Monday 12pm weekly options: (If MONDAY closed open on Tuesday)

POSITION 1: Vertical Call [ (GenerateStrike (3, .5), GenerateStrike (6, 1) ] & volume > 100
POSITION 2: Call Buy Stike= Strike of option(OS_FindCall(1,0)) ;


If SHORTED Vertical CALL ContractProfit >= 75% Then Buy This Bar on Close; Sell ATM Call If less than two days to expiration (Thursday, Friday)
If LONG Vertical CALL ContractProfit >= 200% Then Sell This Bar on Close;


Close remaining Positions on (same week Friday 12pm )

----------------------------------------------------

Reply With Quote

Can you help answer these questions
from other members on NexusFi?
Cocretum bands convert to NinjaTrader8
NinjaTrader
Using multiple Versions of the same DLL in MC.Net
MultiCharts
How to get Large data indicators to print global
NinjaTrader
Sierra chart Trading system
Sierra Chart
NT8 coding values of "Additional Data"
NinjaTrader
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Big Mike in Ecuador
6 thanks
Just another trading journal: PA, Wyckoff & Trends
4 thanks
Cyclic Smoothed RSI V2 for Ninjatrader 8
2 thanks
The Program
2 thanks
ATR as ATM tool, pay to anyone has it
2 thanks




Last Updated on October 23, 2016


© 2025 NexusFi®, s.a., All Rights Reserved.
Av Ricardo J. Alfaro, Century Tower, Panama City, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada)
All information is for educational use only and is not investment advice. There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.
About Us - Contact Us - Site Rules, Acceptable Use, and Terms and Conditions - Privacy Policy - Sitemap - Downloads - Top
no new posts