marth tanaka
marth tanaka
Friends

Add friends via their profile or user search and you will be able to see if they are online

marth tanaka
Added topic how to have an EA use a manual entry as input
//Open Buy Order, instant signal is tested first    RefreshRates();    if (Cross( 0 , iStochastic ( NULL , PERIOD_CURRENT , 34 , 3 , 3 , MODE_SMA , 0 ,MODE_MAIN, 0 )> iStochastic ( NULL , PERIOD_CURRENT , 34 , 3 , 3 , MODE_SMA
marth tanaka
Added topic need help formating date-time string
currently, using this date1 = StringSubstr (date1, 0 , 4 ) + "-" + StringSubstr (date1, 5 , 2 ) + "-" + StringSubstr (date1, 8 , 2 );        string time1 = TimeToStr( iTime (ccy,tf,i), TIME_MINUTES );
marth tanaka
Added topic How to get volume for single currency, not pair?
For example is it possible to use iVolume on just the EUR and not the EURUSD or just the USD and not the EURUSD? Thanks
marth tanaka
Added topic I always get 1?
int return_price( int ttype)   { //function that returns price    int price= 0 ;    for ( int cnt= 0 ;cnt< OrdersTotal ();cnt++)      {        bool result= OrderSelect
marth tanaka
Added topic OrderClose error 4051 invalid ticket for OrderClose function
Im facing this error when I try to retrieve the oldest ticket in my current pool of trades using the functions below, int EarliestOpenSellTicket() {      datetime EarliestSellTime  = TimeCurrent
marth tanaka
Added topic scanning historical trades to prevent opening multiple trades of the same type
void hedger() {    int buy_trades_number = _get_number_of_trades( OP_BUY );    int sell_trades_number = _get_number_of_trades( OP_SELL );    int numberofhedgedbuys = _get_number_of_trades_hedge_buy( OP_BUY );
marth tanaka
Added topic why doesnt this simple loop work?
for ( int n= 0 ; n<total; n++ ){        if ( ! OrderSelect (n, SELECT_BY_POS , MODE_TRADES ) )        if ( OrderMagicNumber ()!= 333 && number_of_buys == 7 ) OrderSend ( Symbol
marth tanaka
Added topic What is wrong in my code? Getting error 138
int Close1B()   {    int       Close1B=- 1 ;                   // None open.    for ( int cnt=
marth tanaka
Added topic How to close the last trade EXACTLY at the open of the next trade?
So I have a system where I open a new trade every 10 pips and close out the last trade.  The last trade is also modified to set the stop loss to 10 pips. Currently, I have a function that does this: void TradeCloser(){ //start
marth tanaka
Added topic Newbie Coder--Trying to code in a trailing stop loss--somewhat lost
Hey, so this is what I have so far: void OnTick ( void )   {   openedpositions= OrdersTotal ();    if ((openedpositions > 0 ))       {    int totalorders = OrdersTotal ();
marth tanaka
Added topic How to incorporate this type of trailing stop?
Hi, I currently have a system that opens a trade almost every 5 minutes. I'm currently trying to wrap my head around creating a trailing stop loss that does something like this: "when price moves to 5 pips in profit stoploss is moved to entry when
marth tanaka
Registered at MQL5.community