NexusFi: Find Your Edge


Home Menu

 





Arrow Reader


Discussion in EasyLanguage Programming

Updated
      Top Posters
    1. looks_one ABCTG with 5 posts (2 thanks)
    2. looks_two mamax98 with 4 posts (0 thanks)
    3. looks_3 Jura with 1 posts (1 thanks)
    4. looks_4 KFC Chan with 1 posts (0 thanks)
    1. trending_up 3,365 views
    2. thumb_up 3 thanks given
    3. group 3 followers
    1. forum 11 posts
    2. attach_file 0 attachments




 
Search this Thread

Arrow Reader

  #1 (permalink)
 mamax98 
Los Angeles California United States
 
Experience: Beginner
Platform: NT, TS, MC
Trading: ES
Posts: 54 since Jun 2015
Thanks Given: 152
Thanks Received: 13

Is there any way to get Multichart to recognize a manually drawn arrow on a chart? I'm trying to go back in charts and manually place trades by drawing and up or down arrow. Multicharts can then produce a performance report based on my arrows. Someone had the exact project in 2014 and he posted it in Downloads, however the code doesn't work. Thanks in advance.

Started this thread Reply With Quote

Can you help answer these questions
from other members on NexusFi?
How to apply profiles
Traders Hideout
MC PL editor upgrade
MultiCharts
Better Renko Gaps
The Elite Circle
ZombieSqueeze
Platforms and Indicators
PowerLanguage & EasyLanguage. How to get the platfor …
EasyLanguage Programming
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Just another trading journal: PA, Wyckoff & Trends
31 thanks
Spoo-nalysis ES e-mini futures S&P 500
28 thanks
Tao te Trade: way of the WLD
24 thanks
Bigger Wins or Fewer Losses?
20 thanks
GFIs1 1 DAX trade per day journal
17 thanks
  #3 (permalink)
 ABCTG   is a Vendor
 
Posts: 2,433 since Apr 2013
Thanks Given: 481
Thanks Received: 1,627


mamax98,

take a look at Arw GetNext, as it will allow you to detect manually drawn arrows. I am not sure how MC would produce a performance report out of your arrows though (unless you track the performance yourself within the code of course or create a signal that takes entries and exits based on the arrows).

Regards,

ABCTG

Follow me on Twitter Reply With Quote
Thanked by:
  #4 (permalink)
 mamax98 
Los Angeles California United States
 
Experience: Beginner
Platform: NT, TS, MC
Trading: ES
Posts: 54 since Jun 2015
Thanks Given: 152
Thanks Received: 13


ABCTG View Post
mamax98,

take a look at Arw GetNext, as it will allow you to detect manually drawn arrows. I am not sure how MC would produce a performance report out of your arrows though (unless you track the performance yourself within the code of course or create a signal that takes entries and exits based on the arrows).

Regards,

ABCTG

Thanks a lot @ABCTG.
I will take a look at that function. The plan is to build a strategy or "signal" that will generate buy or sell signals based on the direction of the arrow. It was attempted before in download called "Arrow Reader". However, the download was meant for a game of guessing market direction and statistics. I couldn't get it to do any more than that. Do you think that's possible in EL? Also is there alternatives that I can try, like capturing key strokes or mouse clicks? I've tried a mouseclick code but that didn't seem to work either lol

Started this thread Reply With Quote
  #5 (permalink)
 ABCTG   is a Vendor
 
Posts: 2,433 since Apr 2013
Thanks Given: 481
Thanks Received: 1,627

mamax98,

it's doable in EasyLanguage and mouse clicks should work, too. However you'd need a way to store/retrieve the clicked bars with your system.

Regards,

ABCTG

Follow me on Twitter Reply With Quote
  #6 (permalink)
 
Jura's Avatar
 Jura   is a Vendor
 
Posts: 775 since Apr 2010
Thanks Given: 2,352
Thanks Received: 690


mamax98 View Post
The plan is to build a strategy or "signal" that will generate buy or sell signals based on the direction of the arrow. (...) I've tried a mouseclick code but that didn't seem to work either lol

I would mouse clicks for this, actually.

There are a couple of ways to approach this. You can have the strategy detect whether a new manual arrow is placed on the chart. Then it can fetch the direction of that arrow, followed by making a long/short decision and trade.

But in the first post you also mentioned you'd like to go back on the chart and place the arrows where you'd take trades. In that case, it might be easier to have a mouse click recalculate the strategy on all the historical bars (from the first to the last). It can then submit a trade when an arrow is placed on the bar.

Otherwise, without recalculating the strategy after the arrows are placed on the chart, I don't know how a strategy can submits orders for historical bars (it can't). I hope this makes sense.

Good luck!

Reply With Quote
Thanked by:
  #7 (permalink)
 ABCTG   is a Vendor
 
Posts: 2,433 since Apr 2013
Thanks Given: 481
Thanks Received: 1,627

You will have to recalculate the strategy one way or the other (either by switching the status off and on, by keystroke/mouse-click or by simply adding the strategy to the chart only when you are done drawing all the arrows) to make it aware of the information you placed on a chart (unless you forcefully update your strategy at set intervals using a time anyway).

If you just use mouse-clicks to specify the bars this would require storing the bar information (in a map for example), as otherwise the information would be lost of after a reload. On top of that you wouldn't know on which bar you clicked without adding some drawing, too and you would need a way to retrieve the direction of a trade from your click (for example if it was above the bar, go short and vice versa).

With using arrows you accomplish a lot of the above already: They stay on the chart, they show you were you placed them (you can even conveniently move them to other locations) and you can use the direction (or color) to "signal" a trade direction.

Now the only question would be how you want to reload your strategy code, so it can be react to the information (or updated information). If you don't feel comfortable coding that, you can accomplish it with switching the status off and back on of course. However a code induced reload as @Jura pointed out, using a mouseclick or mouse-click and key combination (to prevent unwanted reloads) would be more convenient.

Regards,

ABCTG

Follow me on Twitter Reply With Quote
Thanked by:
  #8 (permalink)
 mamax98 
Los Angeles California United States
 
Experience: Beginner
Platform: NT, TS, MC
Trading: ES
Posts: 54 since Jun 2015
Thanks Given: 152
Thanks Received: 13

Thanks guys
I managed to produce a code to have the ability to recognize the arrow direction and make trades based on that. I only had enough time to get it to that point, so I haven't don any troubleshooting or verification. I'm hoping to be able to handle multiple contracts too (as in scaling in and scaling out). I definitely need to get more intimate with "Arrow" commands.

Started this thread Reply With Quote
  #9 (permalink)
 ABCTG   is a Vendor
 
Posts: 2,433 since Apr 2013
Thanks Given: 481
Thanks Received: 1,627

mamax98,

as long as your strategy allows for multiple trades in the same direction, this shouldn't be a problem. You can probably get quite creative and use things like color or size of the arrow to determine the number of contracts to use for an order.

Regards,

ABCTG

Follow me on Twitter Reply With Quote
  #10 (permalink)
 mamax98 
Los Angeles California United States
 
Experience: Beginner
Platform: NT, TS, MC
Trading: ES
Posts: 54 since Jun 2015
Thanks Given: 152
Thanks Received: 13


Oh and as far as the strategy performance, I just had to click status off and on every few arrows. I probably can just place my arrows all the way through then refresh the strategy once in the end. No reason to keep on refreshing the strategy every trade.

Started this thread Reply With Quote




Last Updated on December 29, 2020


© 2024 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 - Downloads - Top
no new posts