• Home
  • Forums
  • Trades
  • News
  • Calendar
  • Market
  • Brokers
  • Login
  • Join
  • User/Email: Password:
  • 8:31am
Menu
  • Forums
  • Trades
  • News
  • Calendar
  • Market
  • Brokers
  • Login
  • Join
  • 8:31am
Sister Sites
  • Metals Mine
  • Energy EXCH
  • Crypto Craft

Options

Bookmark Thread

First Page First Unread Last Page Last Post

Print Thread

Similar Threads

BASKET TRADE Management: Using multiple trade management EA's on basket trades 8 replies

TMS basket: Dashboard for a basket of MA-Filtered RSI Signals 135 replies

Renko from an offline basket chart 0 replies

Scripts/EA for an offline basket trading System 0 replies

Please help with this EA for offline renko charts 4 replies

  • Platform Tech
  • /
  • Reply to Thread
  • Subscribe
  • 1
Attachments: Please help, this is driving me crazy! Buy-Sell basket offline chart
Exit Attachments
Tags: Please help, this is driving me crazy! Buy-Sell basket offline chart
Cancel

Please help, this is driving me crazy! Buy-Sell basket offline chart

  • Post #1
  • Quote
  • First Post: Jan 17, 2013 6:57pm Jan 17, 2013 6:57pm
  •  Zool
  • | Joined Mar 2012 | Status: Member | 117 Posts
Hello everyone!

I'm trying to make an offline chart generating indicator for basket trading. In the basket trading method there would be pairs that are buyed and pairs that are sold. There are indicators already out there, that can generate offline charts from a basket of pairs, but they count all the pairs in it as being "buy" pairs. They're simply adding the price data of the basket pairs' together. I need one that reverse the data on the short pairs, since when they going down that's good for us, so I want to see that on my offline chart as an up move.

I found a chart reversing indicator on mql4.com and it's using a simple 1/x formula to reverse the chart. I've modded it to use substraction instead and it's worked good. I need to use a big number to substract from, so the price cannot go into negative, but that's not a problem since I don't care about the actual price, and the pip amount, price action, candle formations are there with this method too.

Now I trying to make the indicator that have two arrays of symbols, one for the buy pairs and one for the sell pairs. I add the buy arrays price datas together, and substract the sell arrays datas from each other. Then I add these two summarized array values together to get the combined price.

The weird part is that when I enter only Buy pairs into the input field, then the indicator generates the offline chart pefectly without any errors. If I enter only sell pairs then the chart won't open ("waiting for update" text) and in the journal tab of mt4 there are error messages about it. If I enter buy and sell pairs, there is something in the offline chart that can be seen, but that's pretty weird, and there are error messages in the journal too. If I enter the same pair as sell and buy too, then the expected result is generated without errors - chart without any visible candles.

I don't know what is wrong with my code, I think it's logically correct. Can someone more experienced coder please look into it and tell me how can it be fixed to work?

Thanks in advance!

EDIT: I forgot to mention that you have to input the list of pairs as a comma separated list, using uppercase letters, and only the pairs name without any other characters the broker adds to the end of it.
Attached File(s)
File Type: mq4 BuySellBasketChart.mq4   6 KB | 285 downloads
  • Post #2
  • Quote
  • Last Post: Feb 6, 2013 9:15am Feb 6, 2013 9:15am
  •  esmarting
  • | Joined Feb 2013 | Status: Junior Member | 2 Posts
Hello Zool, did you solve this?

I'm having a similar problem working with an offline chart generated with P4L periodcon. The EA attached to the offline chart should open long and short stop orders, but it only works fine with buy stop orders, it does not open sell stop pending orders.

As you said, it's driving me crazy....
 
 
  • Platform Tech
  • /
  • Please help, this is driving me crazy! Buy-Sell basket offline chart
  • Reply to Thread
0 traders viewing now
Top of Page
  • Facebook
  • Twitter
About FF
  • Mission
  • Products
  • User Guide
  • Media Kit
  • Blog
  • Contact
FF Products
  • Forums
  • Trades
  • Calendar
  • News
  • Market
  • Brokers
  • Trade Explorer
FF Website
  • Homepage
  • Search
  • Members
  • Report a Bug
Follow FF
  • Facebook
  • Twitter

FF Sister Sites:

  • Metals Mine
  • Energy EXCH
  • Crypto Craft

Forex Factory® is a brand of Fair Economy, Inc.

Terms of Service / ©2023