Posts

Showing posts from December, 2023

MT4 chart trader with button functionality

 //+------------------------------------------------------------------+ //|                                                 Custom price.mq4 | //|                        Copyright 2019, MetaQuotes Software Corp. | //|                                             https://www.mql5.com | //+------------------------------------------------------------------+ #property copyright "Copyright 2019, MetaQuotes Software Corp." #property link      "https://www.mql5.com" #property version   "1.00" #property strict bool long_entry=false,sl=true; bool short_entry=false,tgt=true; double tg,sll,le,se; double target,longentry,shortentry,stoploss; enum Simple_Order_Panel_selection{...

Python get atm from ltp

  def ATM_CE_AND_PE_COMBIMED ( ltp , symbol ): try : monthlyexp = credentials_dict.get( 'monthlyexp' ) monthlyexp = datetime.strptime( monthlyexp , "%d-%m-%Y" ) monthlyexp = monthlyexp .strftime( "%Y-%m-%d" ) pf = pd.read_csv( "Instruments.csv" ) filtered_df = pf [( pf [ 'expiry' ] == monthlyexp ) & ( pf [ 'instrument_type' ] == 'CE' ) & ( pf [ "name" ]== symbol )] if not filtered_df .empty: filtered_df [ "strike_diff" ] = abs ( filtered_df [ "strike" ] - ltp ) min_diff_row = filtered_df .loc[ filtered_df [ 'strike_diff' ].idxmin()] strike = int ( min_diff_row [ "strike" ]) cesymname = min_diff_row [ "tradingsymbol" ] pesymname = cesymname .rsplit( 'CE' , 1 )[ 0 ] + 'PE' ce_ltp =Zerodha_Integration.get_ltp_option( cesymnam...

MQL4 add time to current time functionality

      //  thirtymin=iTime(Symbol(),PERIOD_M30,1);   //  previous5buy=thirtymin-5*60;    //  previous10buy=thirtymin-10*60;    //  fivemin1=iTime(Symbol(),PERIOD_M5,1);   //  fivemin2=iTime(Symbol(),PERIOD_M5,2);     //  fivemin3=iTime(Symbol(),PERIOD_M5,3);       in above function i have substracted 5 min from previous 30 min candle 

Sharp arrow ea mql4 (Denise fiverr)

 //+------------------------------------------------------------------+ //|                                               Sharp arrow ea.mq4 | //|                                                    Pulkit Chadha | //|                                                    +918126282062 | //+------------------------------------------------------------------+ string expiry= "2023.12.16"; string MESSAGE="Trial expired please contact admin"; #property copyright "Pulkit Chadha" #property link      "+918126282062" #property version   "1.00" #property strict int i=0,j=0; extern bool show_arrow=t...

MT4 buy and sell trailling stoploss MQL4

          if (Trade=="BUY")    {    if (Close[0]>=tsl_lv&&tsl_lv>0 )    {        for (int b = OrdersTotal()-1;b>=0;b--)    {        if (OrderSelect(b,SELECT_BY_POS,MODE_TRADES))    {    if(OrderSymbol()==Symbol()&& OrderType()==OP_BUY)    {    sll=sll+(TSL*MyPoint);    OrderModify(OrderTicket(),OrderOpenPrice(),sll,OrderTakeProfit(),0,clrNONE);    tsl_lv=Close[0]+TSL*MyPoint;        }          }    }      }      }                 if (Trade=="SHORT")    {    if (Close[0]<=tsl_lv&&tsl_lv>0 )    {        for (int b = OrdersTotal()-1;b>=0;b--)    {        if (OrderSe...