NexusFi: Find Your Edge


Home Menu

 





xls macro / vba programming


Discussion in Traders Hideout

Updated
    1. trending_up 3,240 views
    2. thumb_up 3 thanks given
    3. group 1 followers
    1. forum 3 posts
    2. attach_file 0 attachments




 
Search this Thread

xls macro / vba programming

  #1 (permalink)
 
adamov's Avatar
 adamov 
Budapest, Hungary
 
Experience: None
Platform: ninjatrader
Trading: FGBL / FESX / ES / ZN / ZB
Posts: 84 since Jun 2012
Thanks Given: 37
Thanks Received: 49

hey!

I am using excel solver tool to analyze/optimize something.
The problem is I should do this in over thousand of lines, and I’d like to avoid it to make manually line by line. Unfortunately I am not familiar with vba.

the task would be to minimize the value at CM3 by changing AK3 and CM4 / AK4 up to CM3637 /AK3637.

Any help is appreciated!

Started this thread Reply With Quote

Can you help answer these questions
from other members on NexusFi?
NT7 Indicator Script Troubleshooting - Camarilla Pivots
NinjaTrader
MC PL editor upgrade
MultiCharts
ZombieSqueeze
Platforms and Indicators
How to apply profiles
Traders Hideout
Pivot Indicator like the old SwingTemp by Big Mike
NinjaTrader
 
  #3 (permalink)
 grausch 
Luxembourg, Luxembourg
 
Experience: Advanced
Platform: TWS
Broker: Interactive Brokers
Trading: Stocks
Posts: 494 since May 2012
Thanks Given: 1,731
Thanks Received: 1,159



adamov View Post
hey!

I am using excel solver tool to analyze/optimize something.
The problem is I should do this in over thousand of lines, and I’d like to avoid it to make manually line by line. Unfortunately I am not familiar with vba.

the task would be to minimize the value at CM3 by changing AK3 and CM4 / AK4 up to CM3637 /AK3637.

Any help is appreciated!

When you say that you are using the solver tool do you mean you are using the Goal Seek function or are you using something else?

When wanting to use VBA in excel the best way would be to see if the specific function in Excel can be recorded using the "Record a Macro" function at your disposal. This will give you an indication of whether it can be done.

If it can not be done using the "Record A Macro" function, then you could write a macro that changes cells AK3 and CM4 / AK4 in the way you desire and just keep track of the numbers that provide the minimum value for CM3. This should not be too difficult to do, but depending on the amount of data it can take a little while.

If you are not familiar with the VBA in excel basics, try finding a couple of online videos or lessons to explain them. If you have some programming experience and using the recorder, you should be up and running in less than a day.

Reply With Quote
Thanked by:
  #4 (permalink)
 
adamov's Avatar
 adamov 
Budapest, Hungary
 
Experience: None
Platform: ninjatrader
Trading: FGBL / FESX / ES / ZN / ZB
Posts: 84 since Jun 2012
Thanks Given: 37
Thanks Received: 49


grausch View Post
When you say that you are using the solver tool do you mean you are using the Goal Seek function or are you using something else?

When wanting to use VBA in excel the best way would be to see if the specific function in Excel can be recorded using the "Record a Macro" function at your disposal. This will give you an indication of whether it can be done.

If it can not be done using the "Record A Macro" function, then you could write a macro that changes cells AK3 and CM4 / AK4 in the way you desire and just keep track of the numbers that provide the minimum value for CM3. This should not be too difficult to do, but depending on the amount of data it can take a little while.

If you are not familiar with the VBA in excel basics, try finding a couple of online videos or lessons to explain them. If you have some programming experience and using the recorder, you should be up and running in less than a day.

Thank you for your replay.
It seems I managed to find a mathematical way to solve my equation.
Using solver wouldn't have been resource efficient and elegant anyway.

Have a nice day!

Started this thread Reply With Quote
Thanked by:




Last Updated on March 7, 2017


© 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