My Serious option questions - test123, healthraj and other knowledgable option trader

mvkarthik

Well-Known Member
#11
Re: My Serious option questions - test123, healthraj and other knowledgable option tr

One tip u want help really fast made a id called seema /sita8722 or any female sounding id and ask and see how fast help comes from legendary Knowledgeable trader ^^ hehe
:lol::lol::lol::lol::lol::lol::lol:
 
#12
Re: My Serious option questions - test123, healthraj and other knowledgable option tr

Hi members,
Before continue this thread, please do me a favor
If this code is working for you.
Can you post picture of it?
I've tried it , but i can't see any value so i'm asking

Code:
// http://www.amibroker.com/docs/MTFIndicators.html
// First 'Scan' on 1-minute time frame
// Then click 'Backtest'
// Then right-click result list and choose "Show arrows for actual trades"
// mod. by trash
// http://www.traderji.com/amibroker/90119-simple-coding-help-no-promise-349.html#post1087794

SetOption( "FuturesMode", False );
// etc.
SetPositionSize( 1, spsShares );

// calling stored custom MACD line
// It is dependent on the Symbol is was created with!
nm = Name(); // insert the name of the symbol the composite was created with
x = StaticVarGet( "~MACD" + nm ); //Foreign( "~MACD" + Name(), "C" );
// create buy sell signal
Buy = Cross( x, -0.5 ); // buy when x crosses ABOVE -0.5
Sell = Cross( 0.5, x ); // sell when x crosses BELOW 0.5
Short = Cover = 0;

// create custom MACD composite via Scan
if( Status( "action" ) == actionScan ) {
    Count = 0;
    result = 0;
    for( i = 10; i <= 300; i++ ) {
        TimeFrameSet( i * in1Minute );
        m = MACD( 12, 26 );
        TimeFrameRestore();
        m = IIf( TimeFrameExpand( m, i * in1Minute ) > 0, 1, -1 );
        result += m;
        Count++;
    }

    // storing result to static variable. 
    // It is dependent on the Symbol is was created with!
    StaticVarSet( "~MACD" + Name(), result / Count, persistent = true );
    //AddToComposite( result / Count, "~MACD" + Name(), "X" );
    Buy = 0;
}

// for insertion to separate indicator pane, NOT for price pane! 
if( Status( "action" ) == actionIndicator ) {
    // plot stored MTMACD
    Plot( x, "MTMACD", colorBlue, styleThick );

    // two grid lines
    PlotGrid( 0.5, colorRed );
    PlotGrid( -0.5, colorGreen );

    // removing excessive signals in indicator pane
    Buy = ExRem( Buy, Sell );
    Sell = ExRem( Sell, Buy );
    Short = ExRem( Short, Cover );
    Cover = ExRem( Cover, Short );

    // plotting buy and sell shapes
    PlotShapes( Buy * shapeUpArrow + Sell * shapeDownArrow,
                IIf( Buy, colorGreen, colorRed ), layer = 0,
                y = x, dist = -12 );
    PlotShapes( Buy * shapeHollowUpArrow + Sell * shapeHollowDownArrow,
                colorLightGrey, layer, y, dist );
}



Thank you
 
Last edited:
#13
Re: My Serious option questions - test123, healthraj and other knowledgable option tr

Hi members,
Before continue this thread, please do me a favor
If this code is working for you.
Can you post picture of it?
I've tried it , but i can't see any value so i'm asking

Code:
// http://www.amibroker.com/docs/MTFIndicators.html
// First 'Scan' on 1-minute time frame
// Then click 'Backtest'
// Then right-click result list and choose "Show arrows for actual trades"
// mod. by trash
// http://www.traderji.com/amibroker/90119-simple-coding-help-no-promise-349.html#post1087794

SetOption( "FuturesMode", False );
// etc.
SetPositionSize( 1, spsShares );

// calling stored custom MACD line
// It is dependent on the Symbol is was created with!
nm = Name(); // insert the name of the symbol the composite was created with
x = StaticVarGet( "~MACD" + nm ); //Foreign( "~MACD" + Name(), "C" );
// create buy sell signal
Buy = Cross( x, -0.5 ); // buy when x crosses ABOVE -0.5
Sell = Cross( 0.5, x ); // sell when x crosses BELOW 0.5
Short = Cover = 0;

// create custom MACD composite via Scan
if( Status( "action" ) == actionScan ) {
    Count = 0;
    result = 0;
    for( i = 10; i <= 300; i++ ) {
        TimeFrameSet( i * in1Minute );
        m = MACD( 12, 26 );
        TimeFrameRestore();
        m = IIf( TimeFrameExpand( m, i * in1Minute ) > 0, 1, -1 );
        result += m;
        Count++;
    }

    // storing result to static variable. 
    // It is dependent on the Symbol is was created with!
    StaticVarSet( "~MACD" + Name(), result / Count, persistent = true );
    //AddToComposite( result / Count, "~MACD" + Name(), "X" );
    Buy = 0;
}

// for insertion to separate indicator pane, NOT for price pane! 
if( Status( "action" ) == actionIndicator ) {
    // plot stored MTMACD
    Plot( x, "MTMACD", colorBlue, styleThick );

    // two grid lines
    PlotGrid( 0.5, colorRed );
    PlotGrid( -0.5, colorGreen );

    // removing excessive signals in indicator pane
    Buy = ExRem( Buy, Sell );
    Sell = ExRem( Sell, Buy );
    Short = ExRem( Short, Cover );
    Cover = ExRem( Cover, Short );

    // plotting buy and sell shapes
    PlotShapes( Buy * shapeUpArrow + Sell * shapeDownArrow,
                IIf( Buy, colorGreen, colorRed ), layer = 0,
                y = x, dist = -12 );
    PlotShapes( Buy * shapeHollowUpArrow + Sell * shapeHollowDownArrow,
                colorLightGrey, layer, y, dist );
}



Thank you
Hi members,
May I know, Is this code working for you?
Thank you
 

jagankris

Well-Known Member
#14
Re: My Serious option questions - test123, healthraj and other knowledgable option tr

Hi members,
May I know, Is this code working for you?
Thank you
If you are using amibroker version 5.8 and above the below line in will work
StaticVarSet( "~MACD" + Name(), result / Count, persistent = true );

else just remove the persistent = true
i.e replace the above with StaticVarSet( "~MACD" + Name(), result / Count);
 

mohan.sic

Well-Known Member
#15
Re: My Serious option questions - test123, healthraj and other knowledgable option tr

see lol no shortage of Angels :xD
One tip u want help really fast made a id called seema /sita8722 or any female sounding id and ask and see how fast help comes from legendary Knowledgeable trader ^^ hehe
:lol::lol:This is Tip of The Year.:thumb:
 
#16
Re: My Serious option questions - test123, healthraj and other knowledgable option tr

Hi,
Is it true that , if Price doesn't reach to put option strike price.. it'll go expire, without selling a put?

Assume.. today nifty is 8000
someone bought put at just say 6800 strike price
Buy 6800 put september series

If price doesn't reach to 6800, it'll go worthless ?

Yes, if i sell put 6800 price, i know that , if price doesn't reach to 6800, it'll go worthless.
Why am i asking this?
Because when i see last month option, which is august series, i saw that
All option chain strike price of say ..6800,6900,7000,7100....7800 went worthless and same goes for upper strike price.
And yes, it's option strike price chain, not buying and selling of these strike price.
buying and seeling comes after strike price, whether we buy or not?

Thank you.
 

mohan.sic

Well-Known Member
#17
Re: My Serious option questions - test123, healthraj and other knowledgable option tr

Hi,
Is it true that , if Price doesn't reach to put option strike price.. it'll go expire, without selling a put?

Assume.. today nifty is 8000
someone bought put at just say 6800 strike price
Buy 6800 put september series

If price doesn't reach to 6800, it'll go worthless ?

Yes, if i sell put 6800 price, i know that , if price doesn't reach to 6800, it'll go worthless.
Why am i asking this?
Because when i see last month option, which is august series, i saw that
All option chain strike price of say ..6800,6900,7000,7100....7800 went worthless and same goes for upper strike price.
And yes, it's option strike price chain, not buying and selling of these strike price.
buying and seeling comes after strike price, whether we buy or not?

Thank you.
If you just started learning about options market, dont look at options chain and get confused. Option chain is nothing but whole series data displayed at single place.

For initial learning, study basics, then follow 2 stikes call and put along with future.
 
#18
Re: My Serious option questions - test123, healthraj and other knowledgable option tr

Hi,
Is it true that , if Price doesn't reach to put option strike price.. it'll go expire, without selling a put?

Assume.. today nifty is 8000
someone bought put at just say 6800 strike price
Buy 6800 put september series

If price doesn't reach to 6800, it'll go worthless ?

Yes, if i sell put 6800 price, i know that , if price doesn't reach to 6800, it'll go worthless.
Why am i asking this?
Because when i see last month option, which is august series, i saw that
All option chain strike price of say ..6800,6900,7000,7100....7800 went worthless and same goes for upper strike price.
And yes, it's option strike price chain, not buying and selling of these strike price.
buying and seeling comes after strike price, whether we buy or not?

Thank you.
Hi,
If anyone know, please let me know, because i observed this thing in last month august , that i was trading, and with nse option nifty historical data..
I was checking different price of different months and i found the same at expiry day.
Thank you
 
#19
Re: My Serious option questions - test123, healthraj and other knowledgable option tr

You may do not trade options as long as you do not understand them in dept. Learn about the option Greeks and do understand them clearly and your above question will be answered.
 
Last edited:
#20
Re: My Serious option questions - test123, healthraj and other knowledgable option tr

Hi,
If anyone know, please let me know, because i observed this thing in last month august , that i was trading, and with nse option nifty historical data..
I was checking different price of different months and i found the same at expiry day.
Thank you
Hi,
i made a mistake in asking question.
even though we know that it's going to be worthless, then buying something is gonna lose, so only option is selling.
i was get excited when i see by buying how many lots i could buy, and in excitement i asked this.. later i knew , for making profit it should be selling. It gonna be heaven if margin for buying and selling will be same.
In reality it's 1:10 times .

Thank you
 

Similar threads